Add n new nodes to the graph.
n (int) – the number of nodes to add
int
set[int]
set
Example
import pyagrum as gum pdag = gum.PDAG() pdag.addNodes(3) # {0, 1, 2} pdag.size() # 3
Used by
PDAG, ChainGraph
PDAG
ChainGraph