diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-03 14:24:22 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-03 14:24:22 -0500 |
| commit | a9125f9e7c23063e42eeaceead8c8014686c6427 (patch) | |
| tree | 7714f2628dbe8588255db0034c21b89a389c13be /src/cascade_creation.py | |
| parent | 072f7f0b0a2965d7d640a9fcf5ef60feb0756d93 (diff) | |
| download | cascades-a9125f9e7c23063e42eeaceead8c8014686c6427.tar.gz | |
adding experiments section
Diffstat (limited to 'src/cascade_creation.py')
| -rw-r--r-- | src/cascade_creation.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cascade_creation.py b/src/cascade_creation.py index c647b9a..c297f76 100644 --- a/src/cascade_creation.py +++ b/src/cascade_creation.py @@ -25,8 +25,7 @@ class InfluenceGraph(nx.DiGraph): p : proba of rewiring edge """ G = nx.connected_watts_strogatz_graph(n, k, p) - self.add_edges_from(G.edges()) - #TODO: Make the graph directed! + G = nx.convert_to_directed(G) self.add_edges_from(G.edges()) def import_from_file(self, file_name): |
