aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-02-03 14:24:22 -0500
committerjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-02-03 14:24:22 -0500
commita9125f9e7c23063e42eeaceead8c8014686c6427 (patch)
tree7714f2628dbe8588255db0034c21b89a389c13be /src
parent072f7f0b0a2965d7d640a9fcf5ef60feb0756d93 (diff)
downloadcascades-a9125f9e7c23063e42eeaceead8c8014686c6427.tar.gz
adding experiments section
Diffstat (limited to 'src')
-rw-r--r--src/cascade_creation.py3
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):