Skip to content

Commit

Permalink
Merge pull request #33 from Mathics3/dl_blanklines
Browse files Browse the repository at this point in the history
addiing blanklines between </dl> and the examples in docstrings
  • Loading branch information
rocky authored Aug 8, 2024
2 parents 4abc682 + c1674f0 commit 6e56174
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions pymathics/graph/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1448,6 +1448,7 @@ class VertexIndex(_NetworkXBuiltin):
<dd> gives the integer index of the vertex 'v' in the\
graph 'g'.
</dl>
>> a=.;
>> VertexIndex[{c <-> d, d <-> a}, a]
= 3
Expand Down
1 change: 1 addition & 0 deletions pymathics/graph/components.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def eval(
# <dt>'FindHamiltonianPath[$g$]'
# <dd>returns a Hamiltonian path in the given tournament graph.
# </dl>
#
# """
# def eval_(self, graph, expression, evaluation: Evaluation, options):
# "FindHamiltonianPath[graph_, OptionsPattern[FindHamiltonPath]]"
Expand Down
2 changes: 2 additions & 0 deletions pymathics/graph/parametric.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ class KaryTree(_NetworkXBuiltin):
<dt>'KaryTree[$n$, $k$]'
<dd>Creates $k$-ary tree with $n$ vertices.
</dl>
>> KaryTree[10]
= -Graph-
Expand Down Expand Up @@ -552,6 +553,7 @@ class PathGraph(_NetworkXBuiltin):
<dd>Returns a Graph with a path with vertices $v_i$ and \
edges between $v-i$ and $v_i+1$ .
</dl>
>> PathGraph[{1, 2, 3}]
= -Graph-
"""
Expand Down
1 change: 1 addition & 0 deletions pymathics/graph/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class PathGraph(_NetworkXBuiltin):
<dt>'PathGraph[{$v_1$, $v_2$, ...}]'
<dd>Returns a Graph with a path with vertices $v_i$ and edges between $v-i$ and $v_i+1$ .
</dl>
>> PathGraph[{1, 2, 3}]
= -Graph-
"""
Expand Down

0 comments on commit 6e56174

Please sign in to comment.