Skip to content

Commit

Permalink
Pushed graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
hehlinge42 committed Mar 8, 2021
1 parent a084072 commit d83826d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ dmypy.json
# Pyre type checker
.pyre/

data/*

# Large files
data/com-friendster.ungraph.txt
data/web-Google.txt
6 changes: 6 additions & 0 deletions data/toy_dataset.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
1 2
2 3
2 4
4 5
6 7
7 8
2 changes: 1 addition & 1 deletion ignore_large_files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ sed '/# Large files/,$d' < .gitignore > tmp
rm .gitignore
mv tmp .gitignore
echo '# Large files' >> .gitignore
find . -not -path '*/\.*' -size +95M | cut -c 3- >> .gitignore
find . -not -path '*/\.*' -size +50M | cut -c 3- >> .gitignore
8 changes: 8 additions & 0 deletions src/zip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from itertools import cycle

list2 = [1, 2, 3]
list1 = [9] * len(list2)
zipped = zip(list1, list2)
print(zipped)
for couple in zipped:
print(f"{couple[0]} {couple[1]}")

0 comments on commit d83826d

Please sign in to comment.