.. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gallery_plot_basics.py: A dead simple network --------------------- The simplest way to plot a graph ever. And yet it looks cool! .. image:: /gallery/images/sphx_glr_plot_basics_001.png :class: sphx-glr-single-img .. code-block:: python 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) .. _sphx_glr_download_gallery_plot_basics.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_basics.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_basics.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_