Skip to content

Commit 10433d3

Browse files
committed
Networkx -> NetworkX and some typos
1 parent 27e70c3 commit 10433d3

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

pymathics/graph/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
>> BinomialTree[3, DirectedEdges->True]
1515
= -Graph-
1616
17-
>> BalencedTree[3, 3]
17+
>> BalancedTree[3, 3]
1818
= -Graph-
1919
2020
>> g = Graph[{1 -> 2, 2 -> 3, 3 <-> 4}, VertexLabels->True]

pymathics/graph/base.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,9 @@ def eval_patt(self, graph, patt, expression, evaluation, options):
10251025
class AdjacencyList(_NetworkXBuiltin):
10261026
"""
10271027
<url>
1028-
:Adjacenty list:
1028+
:Adjacency list:
10291029
https://en.wikipedia.org/wiki/Adjacency_list</url> (<url>
1030-
:Networkx:
1030+
:NetworkX:
10311031
https://networkx.org/documentation/networkx-2.8.8/reference/readwrite/adjlist.html</url>,
10321032
<url>
10331033
:WMA:
@@ -1036,9 +1036,10 @@ class AdjacencyList(_NetworkXBuiltin):
10361036
<dl>
10371037
<dt>'AdjacencyList'[$graph$, $v$]
10381038
<dd>gives a list of vertices adjacent to $v$ in a 'Graph' \
1039-
or a list of edges $g$..
1039+
or a list of edges $g$.
1040+
10401041
<dt>'AdjacencyList'[$graph$, $pattern$]
1041-
<dd>gives a list of vertices adjacent to vertices \.
1042+
<dd>gives a list of vertices adjacent to vertices \
10421043
matching $pattern$.
10431044
</dl>
10441045
@@ -1099,7 +1100,7 @@ class BetweennessCentrality(_Centrality):
10991100
<url>
11001101
:Betweenness centrality:
11011102
https://en.wikipedia.org/wiki/Betweenness_centrality</url> (<url>
1102-
:Networkx:
1103+
:NetworkX:
11031104
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms/generated/\
11041105
networkx.algorithms.centrality.betweenness_centrality.html</url>,
11051106
<url>
@@ -1143,7 +1144,7 @@ class ClosenessCentrality(_Centrality):
11431144
<url>
11441145
:Betweenness centrality:
11451146
https://en.wikipedia.org/wiki/Closeness_centrality</url> (<url>
1146-
:Networkx:
1147+
:NetworkX:
11471148
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms/generated/\
11481149
networkx.algorithms.centrality.closeness_centrality.html</url>,
11491150
<url>
@@ -1191,7 +1192,7 @@ class DegreeCentrality(_Centrality):
11911192
<url>
11921193
:Degree centrality:
11931194
https://en.wikipedia.org/wiki/Degree_centrality</url> (<url>
1194-
:Networkx:
1195+
:NetworkX:
11951196
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms/generated/\
11961197
networkx.algorithms.centrality.degree_centrality.html</url>,
11971198
<url>
@@ -1249,7 +1250,7 @@ class DirectedEdge(Builtin):
12491250
<url>
12501251
:Directed edge:
12511252
https://en.wikipedia.org/wiki/Directed_graph</url> (<url>
1252-
:Networkx:
1253+
:NetworkX:
12531254
https://networkx.org/documentation/stable/reference/classes/digraph.html</url>,
12541255
<url>
12551256
:WMA:
@@ -1270,7 +1271,7 @@ class EdgeConnectivity(_NetworkXBuiltin):
12701271
<url>
12711272
:Edge connectivity:
12721273
https://en.wikipedia.org/wiki/Directed_graph</url> (<url>
1273-
:Networkx:
1274+
:NetworkX:
12741275
https://networkx.org/documentation/stable/reference/algorithms/\
12751276
generated/networkx.algorithms.connectivity.connectivity.edge_connectivity.html</url>,
12761277
<url>
@@ -1394,7 +1395,7 @@ class EigenvectorCentrality(_ComponentwiseCentrality):
13941395
<url>
13951396
:Eigenvector Centrality:
13961397
https://en.wikipedia.org/wiki/Eigenvector_centrality</url> (<url>
1397-
:Networkx:
1398+
:NetworkX:
13981399
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms\
13991400
/generated/networkx.algorithms.centrality.eigenvector_centrality.html</url>,
14001401
<url>
@@ -1459,7 +1460,7 @@ class FindShortestPath(_NetworkXBuiltin):
14591460
<url>
14601461
:Shortest path problem:
14611462
https://en.wikipedia.org/wiki/Shortest_path_problem</url> (<url>
1462-
:Networkx:
1463+
:NetworkX:
14631464
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms\
14641465
/generated/networkx.algorithms.shortest_paths.generic.shortest_path.html</url>,
14651466
<url>
@@ -1725,7 +1726,7 @@ class KatzCentrality(_ComponentwiseCentrality):
17251726
<url>
17261727
:Katz Centrality:
17271728
https://en.wikipedia.org/wiki/Katz_centrality</url> (<url>
1728-
:Networkx:
1729+
:NetworkX:
17291730
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms\
17301731
/generated/networkx.algorithms.centrality.katz_centrality.html\
17311732
#networkx.algorithms.centrality.katz_centrality</url>, <url>
@@ -1787,7 +1788,7 @@ class PageRankCentrality(_Centrality):
17871788
<url>
17881789
:Pagerank Centrality:
17891790
https://en.wikipedia.org/wiki/Pagerank</url> (<url>
1790-
:Networkx:
1791+
:NetworkX:
17911792
https://networkx.org/documentation/networkx-2.8.8/reference/algorithms\
17921793
/generated/networkx.algorithms.link_analysis.pagerank_alg.pagerank.html</url>,
17931794
<url>
@@ -1808,6 +1809,7 @@ class PageRankCentrality(_Centrality):
18081809
# >> g = Graph[{a -> d, b -> c, d -> c, d -> a, e -> c, d -> c}]; PageRankCentrality[g, 0.2]
18091810
= {0.184502, 0.207565, 0.170664, 0.266605, 0.170664}
18101811
"""
1812+
18111813
summary_text = "get the page rank centralities"
18121814

18131815
def eval_alpha_beta(self, graph, alpha, expression, evaluation, options):

pymathics/graph/parametric.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,10 @@ def eval(self, r, n, expression, evaluation: Evaluation, options: dict):
320320

321321

322322
class GraphAtlas(_NetworkXBuiltin):
323-
"""<dl>
323+
"""
324+
<dl>
324325
<dt>'GraphAtlas[$n$]'
325-
<dd>Returns graph number $i$ from the Networkx's Graph \
326+
<dd>Returns graph number $i$ from the NetworkX's Graph \
326327
Atlas. There are about 1200 of them and get large as $i$ \
327328
increases.
328329
</dl>
@@ -334,7 +335,7 @@ class GraphAtlas(_NetworkXBuiltin):
334335
messages = {
335336
"ilsmp": "Expected a positive integer at position 1 in ``.",
336337
}
337-
summary_text = "build the i-esim graph from the Networkx atlas"
338+
summary_text = "build the i-esim graph from the NetworkX atlas"
338339

339340
def eval(self, n, expression, evaluation: Evaluation, options: dict):
340341
"%(name)s[n_Integer, OptionsPattern[%(name)s]]"

0 commit comments

Comments
 (0)