.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "sphinx_gallery_output/plot_09_circular_layout.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_09_circular_layout.py: Circular node layout ==================== The circular node layout routine in netgraph uses the Baur-Brandes algorithm to reduce edge crossings. .. GENERATED FROM PYTHON SOURCE LINES 8-34 .. image-sg:: /sphinx_gallery_output/images/sphx_glr_plot_09_circular_layout_001.png :alt: plot 09 circular layout :srcset: /sphinx_gallery_output/images/sphx_glr_plot_09_circular_layout_001.png :class: sphx-glr-single-img .. code-block:: default import matplotlib.pyplot as plt from netgraph import Graph unbalanced_tree = [ (0, 1), (0, 2), (0, 3), (0, 4), (0, 5), (2, 6), (3, 7), (3, 8), (4, 9), (4, 10), (4, 11), (5, 12), (5, 13), (5, 14), (5, 15) ] Graph(unbalanced_tree, node_layout='circular') plt.show() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.902 seconds) .. _sphx_glr_download_sphinx_gallery_output_plot_09_circular_layout.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_09_circular_layout.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_09_circular_layout.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_