Skip to content

Commit fcce922

Browse files
committed
Create builtin-functions in System namespace
1 parent 3f8e282 commit fcce922

File tree

2 files changed

+68
-1
lines changed

2 files changed

+68
-1
lines changed

pymathics/graph/__init__.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,73 @@
117117
"requires": ["networkx"],
118118
}
119119

120+
_BUILTINS_ = (
121+
"AcyclicGraphQ",
122+
"AdjacencyList",
123+
"BalancedTree",
124+
"BarbellGraph",
125+
"BetweennessCentrality",
126+
"BinomialTree",
127+
"ClosenessCentrality",
128+
"CompleteGraph",
129+
"CompleteKaryTree",
130+
"ConnectedComponents",
131+
"ConnectedGraphQ",
132+
"CycleGraph",
133+
"DegreeCentrality",
134+
"DirectedEdge",
135+
"DirectedGraphQ",
136+
"EdgeConnectivity",
137+
"EdgeCount",
138+
"EdgeDelete",
139+
"EdgeIndex",
140+
"EdgeList",
141+
"EdgeRules",
142+
"EigenvectorCentrality",
143+
"FindShortestPath",
144+
"FindSpanningTree",
145+
"FindVertexCut",
146+
"Graph",
147+
"GraphAtlas",
148+
"GraphAtom",
149+
"GraphBox",
150+
"GraphData",
151+
"GraphDistance",
152+
"GraphQ",
153+
"HITSCentrality",
154+
"HighlightGraph",
155+
"HknHararyGraph",
156+
"HmnHararyGraph",
157+
"KaryTree",
158+
"KatzCentrality",
159+
"LadderGraph",
160+
"LoopFreeGraphQ",
161+
"MixedGraphQ",
162+
"MultigraphQ",
163+
"PageRankCentrality",
164+
"PathGraph",
165+
"PathGraphQ",
166+
"PlanarGraphQ",
167+
"Property",
168+
"PropertyValue",
169+
"RandomGraph",
170+
"RandomTree",
171+
"SimpleGraphQ",
172+
"StarGraph",
173+
"TreeGraph",
174+
"TreeGraphAtom",
175+
"TreeGraphQ",
176+
"UndirectedEdge",
177+
"VertexAdd",
178+
"VertexConnectivity",
179+
"VertexCount",
180+
"VertexDegree",
181+
"VertexDelete",
182+
"VertexIndex",
183+
"VertexList",
184+
"WeaklyConnectedComponents",
185+
)
186+
120187
# These are the publicly exported names
121188
__all__ = [
122189
"AcyclicGraphQ",

pymathics/graph/boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import tempfile
1111
from typing import Tuple
1212

13-
from mathics.core.element import BaseElement, BoxElementMixin
13+
from mathics.core.element import BoxElementMixin
1414

1515
from pymathics.graph.format import png_format_graph, svg_format_graph
1616

0 commit comments

Comments
 (0)