#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

Simple PathΒΆ

Draw a graph with matplotlib.

plot simple path
import matplotlib.pyplot as plt
import networkx as nx

G = nx.path_graph(8)
nx.draw(G)
plt.show()

Total running time of the script: ( 0 minutes 0.099 seconds)

Gallery generated by Sphinx-Gallery