From d83826d9bc6c7c7b2588fbb26899007a2fee653c Mon Sep 17 00:00:00 2001 From: Hugo Ehlinger Date: Mon, 8 Mar 2021 19:22:49 +0100 Subject: [PATCH] Pushed graphs --- .gitignore | 3 +-- data/toy_dataset.txt | 6 ++++++ ignore_large_files.sh | 2 +- src/zip.py | 8 ++++++++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 data/toy_dataset.txt create mode 100644 src/zip.py diff --git a/.gitignore b/.gitignore index 55d53c0..42c12b3 100644 --- a/.gitignore +++ b/.gitignore @@ -128,7 +128,6 @@ dmypy.json # Pyre type checker .pyre/ -data/* - # Large files data/com-friendster.ungraph.txt +data/web-Google.txt diff --git a/data/toy_dataset.txt b/data/toy_dataset.txt new file mode 100644 index 0000000..c3e5e81 --- /dev/null +++ b/data/toy_dataset.txt @@ -0,0 +1,6 @@ +1 2 +2 3 +2 4 +4 5 +6 7 +7 8 diff --git a/ignore_large_files.sh b/ignore_large_files.sh index 9035a62..bb4fc6f 100644 --- a/ignore_large_files.sh +++ b/ignore_large_files.sh @@ -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 diff --git a/src/zip.py b/src/zip.py new file mode 100644 index 0000000..fc2d29e --- /dev/null +++ b/src/zip.py @@ -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]}") \ No newline at end of file