Skip to content

Commit

Permalink
[docs] added grammar example to usage reference
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfischer2781 committed Jul 28, 2017
1 parent beb9ad1 commit 48b1f48
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,15 @@ The primitives you need to familiarise yourself with are

4. edge values, which are values assigned to connections in a graph.

.. graphviz::

digraph graphname {
graph [rankdir=LR, label="graph(a, b, c)"]
subgraph cluster_c {
label=""
a -> c [label="[b:c]=2"]
b -> c [label="[a:c]=3"]
a -> b [label="[c:b]=5"]
}
.. math::
\mathtt{
\underbrace{\vphantom{\bigl[}\mathtt{flighttime}}_\mathtt{graph}
[\overbrace{
\underbrace{\vphantom{\bigl[}\mathtt{Berlin}}_\mathtt{node}
:
\underbrace{\vphantom{\bigl[}\mathtt{London}}_\mathtt{node}
}^{edge}] = \underbrace{\vphantom{\bigl[}\mathtt{3900}}_\mathtt{value}
}
This documentation page gives an overview of the most important aspects.
Expand Down

0 comments on commit 48b1f48

Please sign in to comment.