Add edge to the set of incoming edges. Implicitly adds node as a predecessor.
Add edge to the set of outgoing edges. Implicitly adds node as a successor.
Returns the node that is adjacent to the origin node along edge.In the directed
case, edge is assume
Returns the set of edges connecting the origin node to node. For networks
without parallel edges, th
Remove edge from the set of incoming edges. Returns the former predecessor node.
In the undirected c
Remove edge from the set of outgoing edges. Returns the former successor node.