Block.vertex_sample

Block.vertex_sample(size=1)

A random sample of the vertices.

Parameters:
sizeint, optional

The number of vertices in the random sample.

Returns:
list[int]

The identifiers of the vertices.