Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / examples / drawing / plot_simple_path.py @ 5cef0f13

History | View | Annotate | Download (195 Bytes)

1
#!/usr/bin/env python
2
"""
3
===========
4
Simple Path
5
===========
6

7
Draw a graph with matplotlib.
8
"""
9
import matplotlib.pyplot as plt
10
import networkx as nx
11

    
12
G = nx.path_graph(8)
13
nx.draw(G)
14
plt.show()