A dead simple networkΒΆ

The simplest way to plot a graph 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

# Generate a networkx graph
graph = nx.powerlaw_cluster_graph(50, 1, .2)

# Plot it
plot_network(graph)

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

Gallery generated by Sphinx-Gallery