removeNodes

network.removeNodes(node)
Remove all nodes of a certain kind from the network.

Parameters

edge: edge template
Remove nodes that match this template.

Example (python-conedy)

import conedy as co

N = co.network()


N.addNode (co.node())
N.addNode (co.roessler())

N.removeNodes(co.node())

print "Should be 1:" + str(N.numberVertices())

Example (conedy)

network N;


N.addNode (node());
N.addNode (roessler());

N.removeNodes(node());

print "Should be 1:" + N.numberVertices();

Table Of Contents

Previous topic

removeEdges

Next topic

removeRandomEdges