network.observeAll(fileName, edgeType)
Adds the state of all nodes to the list of observed features. Whenever net.snapshot or net.evolve is called, observed features of the network will be written to the respective files. The file format is a space delimited matrix in which columns are observed features in the order in which they are added to the network.


fileName : string
The name of the file to which data is written
edgeType : edgeTemplate
Nodes are observed via an edge, which is a copy of this template.

Example (python-conedy)

import conedy as co

N = co.network()

N.randomNetwork (10,0.1,co.kuramoto(), co.weightedEdge())

N.observeAll ("output/observeAll.allStates")

for i in range (0,10):
      N.observe (i, "output/observeAll.allStates2")


Example (conedy)

network N;

N.randomNetwork (10,0.1,kuramoto(), weightedEdge());

N.observeAll ("output/observeAll.allStates");

for (int i = 0; i < 10; i++)
      N.observe (i, "output/observeAll.allStates2");


Table Of Contents

Previous topic


Next topic