Skip to content

Commit

Permalink
highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jul 31, 2018
1 parent 7f07a6a commit bf713de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ GraphI - Python Graph Interface and Types
:alt: License
:target: https://github.com/MaineKuehn/graphi/blob/master/LICENSE.txt

.. code::
.. code:: python
flighttime[berlin:london] = 3900
# graph node node value
Expand All @@ -31,7 +31,7 @@ GraphI - Python Graph Interface and Types
Compared to other graph libraries, ``GraphI`` aims for being as pythonic as possible.
If you are comfortable using ``list``, ``dict`` or other types, ``GraphI`` is intuitive and straight-forward to use.

.. code::
.. code:: python
# create a graph with initial nodes
airports = Graph("New York", "Rio", "Tokyo")
Expand All @@ -43,7 +43,7 @@ At its heart, ``GraphI`` is built to integrate with Python's data model.
It natively works with primitives, iterables, mappings and whatever you need.
For example, creating a multigraph can be as simple as using multiple edge values:

.. code::
.. code:: python
# add multiple connections between nodes
airports["Rio":"Tokyo"] = timedelta(days=1, hours=2), timedelta(days=1, hours=3)
Expand Down

0 comments on commit bf713de

Please sign in to comment.