diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2014-11-29 16:53:34 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2014-11-29 16:53:34 -0500 |
| commit | 496d7e5b022dfc005bc2f697a62522d7022519cd (patch) | |
| tree | d1b038d59a73f6a374a0d0b4f8933c7a2417ce1e /jpa_test/cascade_creation.py | |
| parent | 6c2ff72156808975b2434e27a70b03cd54fdaecf (diff) | |
| download | cascades-496d7e5b022dfc005bc2f697a62522d7022519cd.tar.gz | |
horrible greedy implementation
Diffstat (limited to 'jpa_test/cascade_creation.py')
| -rw-r--r-- | jpa_test/cascade_creation.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/jpa_test/cascade_creation.py b/jpa_test/cascade_creation.py index 01332f8..32d9c4a 100644 --- a/jpa_test/cascade_creation.py +++ b/jpa_test/cascade_creation.py @@ -12,7 +12,6 @@ class InfluenceGraph(nx.Graph): def erdos_init(self, n, p): G = nx.erdos_renyi_graph(n, p, directed=True) - self.add_nodes_from(G.nodes()) self.add_edges_from(G.edges()) def import_from_file(self, file_name): |
