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.

Layout Functions#

rustworkx.random_layout(graph[, center, seed])

Generate a random layout

rustworkx.spring_layout(graph[, pos, fixed, ...])

Position nodes using Fruchterman-Reingold force-directed algorithm.

rustworkx.bipartite_layout(graph, first_nodes)

Generate a bipartite layout of the graph

rustworkx.circular_layout(graph[, scale, center])

Generate a circular layout of the graph

rustworkx.shell_layout(graph[, nlist, ...])

Generate a shell layout of the graph

rustworkx.spiral_layout(graph[, scale, ...])

Generate a spiral layout of the graph