DiGraph.addNodes
- DiGraph.addNodes(n)
Add a set of n nodes.
- Parameters:
n (
int) – the number of nodes to add.- Returns:
the new ids
- Return type:
Setofint
Example
import pyagrum as gum
g = gum.DiGraph()
g.addNodes(3)
# {0, 1, 2}
g.size()
# 3
Class
Overridden in