Skip to content

Commit

Permalink
Merge pull request #19 from AnjoMan/line-lengths
Browse files Browse the repository at this point in the history
Update readme to reflect line lengths
  • Loading branch information
AnjoMan committed Oct 27, 2017
2 parents bcf6e16 + 484a6a0 commit 479ba6c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.rst
Expand Up @@ -62,10 +62,15 @@ and ``_, {, }``. Edges can be composed of ``-``, ``/``, ``\`` and ``|``
print(network.nodes(data=True))
>>> [('NodeA', {'position': Point(1, 10)}), ('NodeB', {'position': Point(3, 23)})]
print(network.edges(data=True))
>>> [('NodeA', 'NodeB', OrderedDict([('length', 10)]))]
Networkx provides tools to attach data to nodes and edges; in the above
example you can see that asciigraf uses this to attach a ``Point``
object to each node indicating where on the *(x, y)* plane each node
starts ( *0,0* is at the top-left).
starts ( *0,0* is at the top-left). It also attaches a ``length`` attribute
to each edge which matches the number of characters in that edge.

.. code:: python
Expand Down

0 comments on commit 479ba6c

Please sign in to comment.