A dead simple networkΒΆ

The simplest way to plot a graphe ever. And yet it looks cool!

../_images/sphx_glr_plot_basics_001.png
import networkx as nx
import matplotlib.pyplot as plt
from grave import plot_network

# Generating a networkx graph
graph = nx.barbell_graph(10, 14)

fig, ax = plt.subplots()
plot_network(graph, ax=ax)
plt.show()

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

Gallery generated by Sphinx-Gallery