networkx.drawing

Functions

circular_layout(G[, scale, center, dim]) Position nodes on a circle.
draw(G[, pos, ax, hold]) Draw the graph G with Matplotlib.
draw_circular(G, **kwargs) Draw the graph G with a circular layout.
draw_networkx(G[, pos, arrows, with_labels]) Draw the graph G using Matplotlib.
draw_networkx_edge_labels(G, pos[, ...]) Draw edge labels.
draw_networkx_edges(G, pos[, edgelist, ...]) Draw the edges of the graph G.
draw_networkx_labels(G, pos[, labels, ...]) Draw node labels on the graph G.
draw_networkx_nodes(G, pos[, nodelist, ...]) Draw the nodes of the graph G.
draw_random(G, **kwargs) Draw the graph G with a random layout.
draw_shell(G, **kwargs) Draw networkx graph with shell layout.
draw_spectral(G, **kwargs) Draw the graph G with a spectral layout.
draw_spring(G, **kwargs) Draw the graph G with a spring layout.
fruchterman_reingold_layout(G[, k, pos, ...]) Position nodes using Fruchterman-Reingold force-directed algorithm.
random_layout(G[, center, dim]) Position nodes uniformly at random in the unit square.
rescale_layout(pos[, scale]) Return scaled position array to (-scale, scale) in all axes.
shell_layout(G[, nlist, scale, center, dim]) Position nodes in concentric circles.
spectral_layout(G[, weight, scale, center, dim]) Position nodes using the eigenvectors of the graph Laplacian.
spring_layout(G[, k, pos, fixed, ...]) Position nodes using Fruchterman-Reingold force-directed algorithm.