.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "sphinx_gallery_output/plot_02_directed_network.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_sphinx_gallery_output_plot_02_directed_network.py: Directed Graphs =============== Default visualisation for a directed graph. .. GENERATED FROM PYTHON SOURCE LINES 8-33 .. image-sg:: /sphinx_gallery_output/images/sphx_glr_plot_02_directed_network_001.png :alt: plot 02 directed network :srcset: /sphinx_gallery_output/images/sphx_glr_plot_02_directed_network_001.png :class: sphx-glr-single-img .. code-block:: default import matplotlib.pyplot as plt from netgraph import Graph cube = [ (0, 1), (1, 2), (2, 3), # <- bidirectional edges (3, 2), # <- (3, 0), (4, 5), (5, 6), # <- (6, 5), # <- (6, 7), (0, 4), (7, 4), (5, 1), # <- (1, 5), # <- (2, 6), (3, 7) ] Graph(cube, edge_width=2., arrows=True) plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.158 seconds) .. _sphx_glr_download_sphinx_gallery_output_plot_02_directed_network.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_02_directed_network.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_02_directed_network.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_