graph_tool.draw#
This module contains functions for graph drawing and layout.
Layout algorithms#
Obtain the SFDP spring-block layout of the graph. |
|
Obtain a hierarchical force-directed (HFD) layout of the graph. |
|
Calculate the Fruchterman-Reingold spring-block layout of the graph. |
|
Calculate the ARF spring-block layout of the graph. |
|
Computes a radial layout of the graph according to the shortest-path tree centered at the |
|
Calculate a tidy layered layout of a tree or a forest. |
|
Calculate a layered (hierarchical) layout of a directed graph. |
|
Calculate the Kamada-Kawai spring layout of a connected graph. |
|
Calculate a layout by classical multidimensional scaling of the graph distances. |
|
Calculate a layout of the graph by stress majorization. |
|
Calculate a force-directed layout with the DrL (OpenOrd) algorithm. |
|
Calculate a layout of the graph with the UMAP algorithm. |
|
Calculate a layout of the graph with the Gursoy-Atun self-organizing map. |
|
Calculate a force-directed layout of the graph with the ForceAtlas2 algorithm. |
|
Calculate a force-directed layout of the graph with the GraphOpt model. |
|
Calculate a layout of the graph by simulated annealing with the Davidson-Harel energy. |
|
Calculate a layout of the graph with the Large Graph Layout (LGL) algorithm. |
|
Calculate a layout of the graph with the GEM algorithm. |
|
Calculate a layout of the graph from the eigenvectors of its Laplacian. |
|
Place the vertices on a circle. |
|
Place one vertex at the center and the others on a circle around it. |
|
Place the vertices on concentric circles. |
|
Place the vertices along a spiral. |
|
Place the vertices on a regular grid. |
|
Place the vertices on a sphere, approximately evenly spaced. |
|
Performs a canonical layout of a planar graph. |
|
Performs a random layout of the graph. |
|
State of a hierarchical force-directed (HFD) layout of a graph. |
Layout transformations#
Align a layout with the coordinate axes. |
|
Pack the layouts of the connected components (or of groups of vertices) side by side. |
Graph drawing#
Draw a graph to screen or to a file using cairo. |
|
Draw a nested block model state in a circular or bipartite hierarchy layout with edge bundling. |
|
Convert property map values to be more useful as a vertex size, or edge width. |
|
Return the Bézier spline control points for the edges in |
Low-level graph drawing#
Draw a graph to a |
|
Display an interactive GTK+ window containing the given graph. |
Interactive GTK+ widget displaying a given graph. |
|
Interactive GTK+ window containing a |
|