diff options
| author | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-04 23:54:08 -0500 |
|---|---|---|
| committer | jeanpouget-abadie <jean.pougetabadie@gmail.com> | 2015-02-04 23:54:08 -0500 |
| commit | 6145d1adab1197300d64560b7d26fddd59bdf41d (patch) | |
| tree | aead39ba32e0f3ce6470761c7c6c4ff60e3ee2b2 /src/cascade_creation.py | |
| parent | 1d7ffddca772e540efba876748a2b6e1d3bbd9f4 (diff) | |
| download | cascades-6145d1adab1197300d64560b7d26fddd59bdf41d.tar.gz | |
small changes
Diffstat (limited to 'src/cascade_creation.py')
| -rw-r--r-- | src/cascade_creation.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cascade_creation.py b/src/cascade_creation.py index a71fce7..cdf7484 100644 --- a/src/cascade_creation.py +++ b/src/cascade_creation.py @@ -70,6 +70,7 @@ class InfluenceGraph(nx.DiGraph): self._mat = self.max_proba * np.random.rand(len(self), len(self) ) * np.asarray(nx.adjacency_matrix(self).todense().T) if self.sparse_edges: + print("adding sparse edges to the graph") #Adding sparse non-edges to the graph! self._mat += .1 * np.random.rand(len(self), len(self) ) * np.random.binomial(1, p=.33, size=(len(self), len(self))) |
