Graph.node_sample
- Graph.node_sample(size=1)[source]
Get a list of identifiers of a random set of n nodes.
- Parameters:
- sizeint, optional
The size of the sample.
- Returns:
- list[hashable]
The identifiers of the nodes.
See also
Site Navigation
Get a list of identifiers of a random set of n nodes.
The size of the sample.
The identifiers of the nodes.
See also