Skip to content

Commit 8236eab

Browse files
authored
Merge pull request #42 from Mathics3/fix_docstring_typos
fix dd field typos
2 parents add263b + 3ba5db3 commit 8236eab

File tree

8 files changed

+41
-41
lines changed

8 files changed

+41
-41
lines changed

pymathics/graph/base.py

100644100755
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ class DirectedEdge(GenericDirectedEdge):
911911
912912
913913
<dl>
914-
<dt>'DirectedEdge[$u$, $v$]'
914+
<dt>'DirectedEdge'[$u$, $v$]
915915
<dd>create a directed edge from $u$ to $v$.
916916
</dl>
917917
@@ -941,7 +941,7 @@ class EdgeConnectivity(_NetworkXBuiltin):
941941
https://reference.wolfram.com/language/ref/EdgeConnectivity.html</url>)
942942
943943
<dl>
944-
<dt>'EdgeConnectivity[$g$]'
944+
<dt>'EdgeConnectivity'[$g$]
945945
<dd>gives the edge connectivity of the graph $g$.
946946
</dl>
947947
@@ -1128,9 +1128,9 @@ class FindVertexCut(_NetworkXBuiltin):
11281128
https://reference.wolfram.com/language/ref/FindVertexCut.html</url>)
11291129
11301130
<dl>
1131-
<dt>'FindVertexCut[$g$]'
1131+
<dt>'FindVertexCut'[$g$]
11321132
<dd>finds a set of vertices of minimum cardinality that, if removed, renders $g$ disconnected.
1133-
<dt>'FindVertexCut[$g$, $s$, $t$]'
1133+
<dt>'FindVertexCut'[$g$, $s$, $t$]
11341134
<dd>finds a vertex cut that disconnects all paths from $s$ to $t$.
11351135
</dl>
11361136
@@ -1185,12 +1185,12 @@ class GraphAtom(AtomBuiltin):
11851185
<url>:Graph:https://en.wikipedia.org/wiki/graph</url> (<url>:WMA:
11861186
https://reference.wolfram.com/language/ref/Graph.html</url>)
11871187
<dl>
1188-
<dt>'Graph[{$e1, $e2, ...}]'
1188+
<dt>'Graph'[{$e1, $e2, ...}]
11891189
<dd>returns a graph with edges $e_j$.
11901190
</dl>
11911191
11921192
<dl>
1193-
<dt>'Graph[{v1, v2, ...}, {$e1, $e2, ...}]'
1193+
<dt>'Graph'[{v1, v2, ...}, {$e1, $e2, ...}]
11941194
<dd>returns a graph with vertices $v_i$ and edges $e_j$.
11951195
</dl>
11961196
@@ -1491,7 +1491,7 @@ class VertexList(_PatternList):
14911491
:WMA link:
14921492
https://reference.wolfram.com/language/ref/VertexList.html</url>
14931493
<dl>
1494-
<dt>'VertexList[$edgelist$]'
1494+
<dt>'VertexList'[$edgelist$]
14951495
<dd>list the vertices from a list of directed edges.
14961496
</dl>
14971497
@@ -1521,7 +1521,7 @@ class UndirectedEdge(GenericUndirectedEdge):
15211521
https://reference.wolfram.com/language/ref/UndirectedEdge.html</url>
15221522
15231523
<dl>
1524-
<dt>'UndirectedEdge[$u$, $v$]'
1524+
<dt>'UndirectedEdge'[$u$, $v$]
15251525
<dd>create an undirected edge between $u$ and $v$.
15261526
</dl>
15271527

pymathics/graph/components.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def eval(
6868
# class FindHamiltonianPath(_NetworkXBuiltin):
6969
# """
7070
# <dl>
71-
# <dt>'FindHamiltonianPath[$g$]'
71+
# <dt>'FindHamiltonianPath'[$g$]
7272
# <dd>returns a Hamiltonian path in the given tournament graph.
7373
# </dl>
7474
#

pymathics/graph/curated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class GraphData(_NetworkXBuiltin):
1515
:WMA link:https://reference.wolfram.com/language/ref/GraphData.html</url>
1616
1717
<dl>
18-
<dt>'GraphData[$name$]'
18+
<dt>'GraphData'[$name$]
1919
<dd>Returns a graph with the specified name.
2020
</dl>
2121

pymathics/graph/measures_and_metrics.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ class EdgeCount(_PatternCount):
6161
https://reference.wolfram.com/language/ref/EdgeCount.html</url>
6262
6363
<dl>
64-
<dt>'EdgeCount[$g$]'
64+
<dt>'EdgeCount'[$g$]
6565
<dd>returns a count of the number of edges in graph $g$.
6666
67-
<dt>'EdgeCount[$g$, $patt$]'
67+
<dt>'EdgeCount'[$g$, $patt$]
6868
<dd>returns the number of edges that match the pattern $patt$.
6969
70-
<dt>'EdgeCount[{$v$->$w$}, ...}, ...]'
70+
<dt>'EdgeCount'[{$v$->$w$}, ...}, ...]
7171
<dd>uses rules $v$->$w$ to specify the graph $g$.
7272
</dl>
7373
@@ -96,12 +96,12 @@ class GraphDistance(_NetworkXBuiltin):
9696
</dl>
9797
9898
<dl>
99-
<dt>'GraphDistance[$g$, $s$]'
99+
<dt>'GraphDistance'[$g$, $s$]
100100
<dd>returns the distance from source vertex $s$ to all vertices in the graph $g$.
101101
</dl>
102102
103103
<dl>
104-
<dt>'GraphDistance[{$v$->$w$, ...}, ...]'
104+
<dt>'GraphDistance'[{$v$->$w$, ...}, ...]
105105
<dd>use rules $v$->$w$ to specify the graph $g$.
106106
</dl>
107107
@@ -169,13 +169,13 @@ class VertexCount(_PatternCount):
169169
https://reference.wolfram.com/language/ref/VertexCount.html</url>
170170
171171
<dl>
172-
<dt>'VertexCount[$g$]'
172+
<dt>'VertexCount'[$g$]
173173
<dd>returns a count of the number of vertices in graph $g$.
174174
175-
<dt>'VertexCount[$g$, $patt$]'
175+
<dt>'VertexCount'[$g$, $patt$]
176176
<dd>returns the number of vertices that match the pattern $patt$.
177177
178-
<dt>'VertexCount[{$v$->$w$}, ...}, ...]'
178+
<dt>'VertexCount'[{$v$->$w$}, ...}, ...]
179179
<dd>uses rules $v$->$w$ to specify the graph $g$.
180180
</dl>
181181
@@ -209,13 +209,13 @@ class VertexDegree(_NetworkXBuiltin):
209209
https://reference.wolfram.com/language/ref/VertexDegree.html</url>
210210
211211
<dl>
212-
<dt>'VertexDegree[$g$]'
212+
<dt>'VertexDegree'[$g$]
213213
<dd>returns a list of the degrees of each of the vertices in graph $g$.
214214
215-
<dt>'EdgeCount[$g$, $patt$]'
215+
<dt>'EdgeCount'[$g$, $patt$]
216216
<dd>returns the number of edges that match the pattern $patt$.
217217
218-
<dt>'EdgeCount[{$v$->$w$}, ...}, ...]'
218+
<dt>'EdgeCount'[{$v$->$w$}, ...}, ...]
219219
<dd>uses rules $v$->$w$ to specify the graph $g$.
220220
</dl>
221221

pymathics/graph/parametric.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BalancedTree(_NetworkXBuiltin):
3535
https://reference.wolfram.com/language/ref/BalancedTree.html</url>
3636
3737
<dl>
38-
<dt>'BalancedTree[$r$, $h$]'
38+
<dt>'BalancedTree'[$r$, $h$]
3939
<dd>Returns the perfectly balanced $r$-ary tree of height $h$.
4040
4141
In this tree produced, all non-leaf nodes will have $r$ children and \
@@ -90,7 +90,7 @@ class BarbellGraph(_NetworkXBuiltin):
9090
https://mathworld.wolfram.com/BarbellGraph.html</url>)
9191
9292
<dl>
93-
<dt>'BarbellGraph[$m1$, $m2$]'
93+
<dt>'BarbellGraph'[$m_1$, $m_2$]
9494
<dd>Barbell Graph: two complete graphs connected by a path.
9595
</dl>
9696
@@ -148,7 +148,7 @@ class BinomialTree(_NetworkXBuiltin):
148148
:WMA:https://reference.wolfram.com/language/ref/BinomialTree.html</url>)
149149
150150
<dl>
151-
<dt>'BinomialTree[$n$]'
151+
<dt>'BinomialTree'[$n$]
152152
<dd>Returns the Binomial Tree of order $n$.
153153
154154
The binomial tree of order $n$ with root $R$ is defined as:
@@ -206,7 +206,7 @@ class CompleteGraph(_NetworkXBuiltin):
206206
https://reference.wolfram.com/language/ref/CompleteGraph.html</url>)
207207
208208
<dl>
209-
<dt>'CompleteGraph[$n$]'
209+
<dt>'CompleteGraph'[$n$]
210210
<dd>Returns the complete graph with $n$ vertices, $K_n$.
211211
</dl>
212212
@@ -244,7 +244,7 @@ class CompleteKaryTree(_NetworkXBuiltin):
244244
https://reference.wolfram.com/language/ref/CompleteKaryTree.html</url>)
245245
246246
<dl>
247-
<dt>'CompleteKaryTree[$n$, $k$]'
247+
<dt>'CompleteKaryTree'[$n$, $k$]
248248
<dd>Creates a complete $k$-ary tree of $n$ levels.
249249
</dl>
250250
@@ -295,7 +295,7 @@ class CycleGraph(_NetworkXBuiltin):
295295
https://reference.wolfram.com/language/ref/CycleGraph.html</url>)
296296
297297
<dl>
298-
<dt>'CycleGraph[$n$]'
298+
<dt>'CycleGraph'[$n$]
299299
<dd>Returns the cycle graph with $n$ vertices $C_n$.
300300
</dl>
301301
@@ -324,7 +324,7 @@ class GraphAtlas(_NetworkXBuiltin):
324324
</url>
325325
326326
<dl>
327-
<dt>'GraphAtlas[$n$]'
327+
<dt>'GraphAtlas'[$n$]
328328
<dd>Returns graph number $i$ from the NetworkX's Graph \
329329
Atlas. There are about 1200 of them and get large as $i$ \
330330
increases.
@@ -368,7 +368,7 @@ class HknHararyGraph(_NetworkXBuiltin):
368368
https://reference.wolfram.com/language/ref/HknHararyGraph.html</url>
369369
370370
<dl>
371-
<dt>'HknHararyGraph[$k$, $n$]'
371+
<dt>'HknHararyGraph'[$k$, $n$]
372372
<dd>Returns the Harary graph with given node connectivity and node number.
373373
374374
This second generator gives the Harary graph that minimizes the \
@@ -405,7 +405,7 @@ class HmnHararyGraph(_NetworkXBuiltin):
405405
https://reference.wolfram.com/language/ref/HmnHararyGraph.html</url>
406406
407407
<dl>
408-
<dt>'HmnHararyGraph[$m$, $n$]'
408+
<dt>'HmnHararyGraph'[$m$, $n$]
409409
<dd>Returns the Harary graph with given numbers of nodes and edges.
410410
411411
This generator gives the Harary graph that maximizes the node \
@@ -461,12 +461,12 @@ class KaryTree(_NetworkXBuiltin):
461461
462462
463463
<dl>
464-
<dt>'KaryTree[$r$, $n$]'
464+
<dt>'KaryTree'[$r$, $n$]
465465
<dd>Creates binary tree of $n$ vertices.
466466
</dl>
467467
468468
<dl>
469-
<dt>'KaryTree[$n$, $k$]'
469+
<dt>'KaryTree'[$n$, $k$]
470470
<dd>Creates $k$-ary tree with $n$ vertices.
471471
</dl>
472472
@@ -509,7 +509,7 @@ class LadderGraph(_NetworkXBuiltin):
509509
/generated/networkx.generators.classic.ladder_graph.html</url>)
510510
511511
<dl>
512-
<dt>'LadderGraph[$n$]'
512+
<dt>'LadderGraph'[$n$]
513513
<dd>Returns the Ladder graph of length $n$.
514514
</dl>
515515
@@ -549,7 +549,7 @@ class PathGraph(_NetworkXBuiltin):
549549
</url> (<url>:WMA:https://reference.wolfram.com/language/ref/PathGraph.html
550550
</url>)
551551
<dl>
552-
<dt>'PathGraph[{$v_1$, $v_2$, ...}]'
552+
<dt>'PathGraph'[{$v_1$, $v_2$, ...}]
553553
<dd>Returns a Graph with a path with vertices $v_i$ and \
554554
edges between $v-i$ and $v_i+1$ .
555555
</dl>
@@ -584,7 +584,7 @@ class RandomTree(_NetworkXBuiltin):
584584
https://reference.wolfram.com/language/ref/RandomTree.html</url>
585585
586586
<dl>
587-
<dt>'RandomTree[$n$]'
587+
<dt>'RandomTree'[$n$]
588588
<dd>Returns a uniformly random tree on $n$ nodes.
589589
</dl>
590590
@@ -630,7 +630,7 @@ class StarGraph(_NetworkXBuiltin):
630630
https://reference.wolfram.com/language/ref/StarGraph.html
631631
</url>)
632632
<dl>
633-
<dt>'StarGraph[$n$]'
633+
<dt>'StarGraph'[$n$]
634634
<dd>Returns a star graph with $n$ vertices.
635635
</dl>
636636

pymathics/graph/random.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class RandomGraph(_NetworkXBuiltin):
2626
</url>
2727
2828
<dl>
29-
<dt>'RandomGraph[{$n$, $m$}]'
29+
<dt>'RandomGraph'[{$n$, $m$}]
3030
<dd>Returns a pseudorandom graph with $n$ vertices and $m$ edges.
3131
32-
<dt>'RandomGraph[{$n$, $m$}, $k$]'
32+
<dt>'RandomGraph'[{$n$, $m$}, $k$]
3333
<dd>Returns list of $k$ RandomGraph[{$n$, $m$}].
3434
</dl>
3535
"""

pymathics/graph/structured.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PathGraph(_NetworkXBuiltin):
1818
</url>
1919
2020
<dl>
21-
<dt>'PathGraph[{$v_1$, $v_2$, ...}]'
21+
<dt>'PathGraph'[{$v_1$, $v_2$, ...}]
2222
<dd>Returns a Graph with a path with vertices $v_i$ and edges between $v-i$ and $v_i+1$ .
2323
</dl>
2424
@@ -50,7 +50,7 @@ class TreeGraph(Graph):
5050
</url>
5151
5252
<dl>
53-
<dt>'TreeGraph[{$edge_1$, $edge_2$, ...}]'
53+
<dt>'TreeGraph'[{$edge_1$, $edge_2$, ...}]
5454
<dd>create a tree-like from a list of edges.
5555
</dl>
5656

pymathics/graph/tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class TreeGraphQ(_NetworkXBuiltin):
8787
(<url>:WMA:https://reference.wolfram.com/language/ref/TreeGraphQ.html</url>)
8888
8989
<dl>
90-
<dt>'TreeGraphQ[$g$]'
90+
<dt>'TreeGraphQ'[$g$]
9191
<dd>returns $True$ if the graph $g$ is a tree and $False$ otherwise.
9292
</dl>
9393

0 commit comments

Comments
 (0)