Gallery#
General-purpose and introductory examples for NetworkX. The tutorial introduces conventions and basic graph manipulations.
Basic#
Drawing#
Plotting MultiDiGraph Edges and Labels
3D Drawing#
Graphviz Layout#
Examples using Graphviz layouts with nx_pylab
for drawing.
These examples need Graphviz and PyGraphviz.
Graphviz Drawing#
Examples using Graphviz for layout and drawing via nx_agraph
.
These examples need Graphviz and PyGraphviz.
Graph#
Algorithms#
Community Detection using Girvan-Newman
Image Segmentation via Spectral Graph Partitioning
External libraries#
Examples of using NetworkX with external libraries.
Geospatial#
The following geospatial examples showcase different ways of performing network analyses using packages within the geospatial Python ecosystem. Example spatial files are stored directly in this directory. See the extended description for more details.
Delaunay graphs from geographic points