CliqueGraph.eraseNode
- CliqueGraph.eraseNode(node)
Erase the node and all the adjacent edges.
- Parameters:
id (
int) – the id of the nodenode (
int)
- Return type:
None
Example
import pyagrum as gum
cg = gum.CliqueGraph()
c1, c2 = cg.addNode({0, 1}), cg.addNode({1, 2})
cg.addEdge(c1, c2)
cg.eraseNode(c1)
cg.nodes(), cg.sizeEdges()
# ({1}, 0)
Class