summaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
authorElias Kuthe <elias.kuthe@tu-dortmund.de>2019-01-09 17:46:18 +0100
committerElias Kuthe <elias.kuthe@tu-dortmund.de>2019-01-09 17:48:45 +0100
commit45dbba93011314ef7d33736cff01b075570302a4 (patch)
tree3fc46313f2ac75f2d292fad0d7e6df97a7554b6b /README.rst
parent6cac55b1064c3c346665f9281680fa3b66442ad0 (diff)
downloadnetworkx-45dbba93011314ef7d33736cff01b075570302a4.tar.gz
python syntax highlighting
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 508daf99..211459e2 100644
--- a/README.rst
+++ b/README.rst
@@ -35,7 +35,9 @@ For additional details, please see `INSTALL.rst`.
Simple example
--------------
-Find the shortest path between two nodes in an undirected graph::
+Find the shortest path between two nodes in an undirected graph:
+
+.. code:: python
>>> import networkx as nx
>>> G = nx.Graph()