printNodeStatistics

printNodeStatistics()
Prints (debug) information about the network to the console. Verbosity can be controlled by the variables nodeVerbosity (integer) and edgeVerbosity (integer).

Example (python-conedy)

import conedy as co

N = co.network()
i = N.addNode(co.roessler())

co.set("nodeVerbosity", 0)
co.set("edgeVerbosity", 0)
print "nodeVerbosity = 0, edgeVerbosity = 0\n"
print "------------------------------------\n"
N.printNodeStatistics()
print"\n\n"

co.set("nodeVerbosity", 1)
co.set("edgeVerbosity", 0)
print "nodeVerbosity = 1, edgeVerbosity = 0\n"
print "------------------------------------\n"
N.printNodeStatistics()
print"\n\n"

co.set("nodeVerbosity", 2)
co.set("edgeVerbosity", 0)
print "nodeVerbosity = 2, edgeVerbosity = 0\n"
print "------------------------------------\n"
N.printNodeStatistics()
print"\n\n"



j = N.addNode(co.roessler())
N.addEdge(i, j, co.weightedEdge(1.0))

co.set("nodeVerbosity", 2)
co.set("edgeVerbosity", 1)
print "nodeVerbosity = 2, edgeVerbosity = 1\n"
print "------------------------------------\n"
N.printNodeStatistics()
print"\n\n"

co.set("nodeVerbosity", 2)
co.set("edgeVerbosity", 2)
print "nodeVerbosity = 2, edgeVerbosity = 2\n"
print "------------------------------------\n"
N.printNodeStatistics()
print"\n\n"

Example (conedy)

network N;

int i = N.addNode(roessler());

nodeVerbosity = 0;
edgeVerbosity = 0;
print "nodeVerbosity = 0, edgeVerbosity = 0" + newline;
print "------------------------------------" + newline;
N.printNodeStatistics();
print newline;

nodeVerbosity = 1;
edgeVerbosity = 0;
print "nodeVerbosity = 1, edgeVerbosity = 0" + newline;
print "------------------------------------" + newline;
N.printNodeStatistics();
print newline;

nodeVerbosity = 2;
edgeVerbosity = 0;
print "nodeVerbosity = 2, edgeVerbosity = 0" + newline;
print "------------------------------------" + newline;
N.printNodeStatistics();
print newline;


int j = N.addNode(roessler());
N.addEdge(i, j, weightedEdge (1.0));

nodeVerbosity = 2;
edgeVerbosity = 1;
print "nodeVerbosity = 2, edgeVerbosity = 1" + newline;
print "------------------------------------" + newline;
N.printNodeStatistics();
print newline;



nodeVerbosity = 2;
edgeVerbosity = 2;
print "nodeVerbosity = 2, edgeVerbosity = 2" + newline;
print "------------------------------------" + newline;
N.printNodeStatistics();
print newline;

Table Of Contents

Previous topic

meanWeight

Next topic

Observing dynamics