removeEdge

N.removeEdge(source, target)
Removes all edges between a selected source and target node from the network.

Parameters

source: integer
number of the node which is the source of the edge that should be removed.
target: integer
number of the node which is the target of the edge that should be removed.

Example (python-conedy)

import conedy as co

N=co.network()

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

N.addEdge(0, 1, co.weightedEdge(0.1))
print "Should be true:" + str(N.isLinked(0, 1))

N.removeEdge(0, 1)
print "Should be false:" + str(N.isLinked(0, 1))

Example (conedy)

network N;

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

N.addEdge(0, 1 , weightedEdge(0.1));
print N.isLinked(0, 1);

N.removeEdge(0, 1);
print N.isLinked(0, 1);

Table Of Contents

Previous topic

readInitialCondition

Next topic

removeEdges