.. 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_jarrod_graphxd.py: Grave Documentation ------------------- .. image:: /gallery/images/sphx_glr_plot_jarrod_graphxd_001.png :class: sphx-glr-single-img .. code-block:: python import networkx as nx import matplotlib.pyplot as plt toy_network = nx.barbell_graph(10, 14) node_options = { 'node_color': 'royalblue', 'node_size': 50, 'edgecolors': 'white', } edge_options = { 'line_color': 'grey', 'alpha': 0.7, } pos = nx.circular_layout(toy_network) nx.draw_networkx_nodes(toy_network, pos, **node_options) nx.draw_networkx_edges(toy_network, pos, **edge_options) plt.axes().set_aspect('equal') plt.axis('off') **Total running time of the script:** ( 0 minutes 0.024 seconds) .. _sphx_glr_download_gallery_plot_jarrod_graphxd.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download :download:`Download Python source code: plot_jarrod_graphxd.py ` .. container:: sphx-glr-download :download:`Download Jupyter notebook: plot_jarrod_graphxd.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_