addNode

network.addNode (node)
Adds a node to the network.

Parameters

node : nodeTemplate
Added node is a copy of this template.

Returns

the number of the added node.

Example (python-conedy)

import conedy as co

N = co.network()



N.addNode(co.node())


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

Example (conedy)

network N;

N.addNode(node());


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

Table Of Contents

Previous topic

addEdge

Next topic

addRandomEdges