MixedGraph.eraseNeighbours
- MixedGraph.eraseNeighbours(n)
Erase all the edges adjacent to a given node.
- Parameters:
n (
int) – the id of the node- Return type:
None
Example
import pyagrum as gum
g = gum.fastMixedGraph("A->B-C;B-D")
g.eraseNeighbours(1) # the arc A->B is kept
g.arcs(), g.edges()
# ({(0, 1)}, set())
Class
Overridden in