This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.
- random_layout(graph, center=None, seed=None)#
Generate a random layout
graph (PyGraph) – The graph to generate the layout for
center (tuple) – An optional center position. This is a 2 tuple of two
floatvalues for the center position
seed (int) – An optional seed to set for the random number generator.
The random layout of the graph.
- Return type: