MixedGraph.eraseParents
- MixedGraph.eraseParents(n)
Erase the arcs coming to the node.
- Parameters:
n (
int) – the id of the child node- Return type:
None
Example
import pyagrum as gum
g = gum.fastMixedGraph("A->C;B->C;C-D")
g.eraseParents(g.idFromName("C")) # the edge C-D is kept
g.sizeArcs(), g.sizeEdges()
# (0, 1)
Class
Overridden in