import conedy as co N = co.network() N.addNode(co.roessler()) N.evolve(0.0, 100.0)
import conedy as co N = co.network() N.completeNetwork (10, co.node(), co.weightedEdge()); N.saveAdjacencyMatrix("output/createFromAdjacencyMatrix.py.mat") N.clear() N.createFromAdjacencyMatrix("output/createFromAdjacencyMatrix.py.mat") N.saveAdjacencyMatrix("output/createFromAdjacencyMatrix.py.mat2")
import conedy as co net = co.network() net.addNode (co.node()) net.addEdge (0,0,co.weightedEdge(1.0)) net.removeEdges(co.weightedEdge()) print "Should be 0:" + str(net.meanDegree()) net.clear() net.cycle (10000, 2, co.node(), co.staticWeightedEdge()) net.rewire (0.5, co.weightedEdge(1.0)) print "Should be 4:" + str(net.meanDegree()) net.removeEdges (co.weightedEdge(1.0)) print "Should be close to 2:" + str(net.meanDegree())
import conedy as co net = co.network() net.addNode(co.node()) net.addEdge(0, 0, co.weightedEdge(1.0)) net.removeEdges(co.weightedEdge()) print "Should be 0:" + str(net.meanDegree()) net.clear() net.cycle(10000, 2, co.node(), co.staticWeightedEdge()) net.rewire(0.5, co.weightedEdge(1.0)) print "Should be 4:" + str(net.meanDegree()) net.removeEdges(co.weightedEdge(1.0)) print "Should be close to 2:" + str(net.meanDegree())
def foo(): N = co.network() N.addNode(co.lorenz()) N.evolve(0, 100)