Skip to content

Commit 3ad11b6

Browse files
committed
Start to organize along the groupings of WMA
1 parent 578a2f6 commit 3ad11b6

8 files changed

Lines changed: 2131 additions & 7 deletions

File tree

pymathics/graph/__init__.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
In[4]:= CompleteKaryTree[3, VertexLabels->True]
1212
"""
1313

14-
from pymathics.graph.main import (
14+
from pymathics.graph.base import (
1515
AcyclicGraphQ,
1616
BetweennessCentrality,
1717
ClosenessCentrality,
@@ -20,7 +20,6 @@
2020
DirectedEdge,
2121
DirectedGraphQ,
2222
EdgeConnectivity,
23-
EdgeCount,
2423
EdgeIndex,
2524
EdgeList,
2625
EdgeRules,
@@ -44,12 +43,14 @@
4443
UndirectedEdge,
4544
VertexAdd,
4645
VertexConnectivity,
47-
VertexCount,
48-
VertexDegree,
4946
VertexDelete,
5047
VertexIndex,
5148
VertexList,
5249
)
50+
51+
from pymathics.graph.measures_and_metrics.basic import EdgeCount, VertexCount
52+
from pymathics.graph.measures_and_metrics.degree import VertexDegree
53+
5354
from pymathics.graph.algorithms import * # noqa
5455
from pymathics.graph.generators import * # noqa
5556
from pymathics.graph.tree import * # noqa

pymathics/graph/algorithms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from mathics.core.symbols import SymbolFalse
1616
from mathics.core.systemsymbols import SymbolDirectedInfinity
1717

18-
from pymathics.graph.main import (
18+
from pymathics.graph.base import (
1919
DEFAULT_GRAPH_OPTIONS,
2020
SymbolDirectedEdge,
2121
SymbolUndirectedEdge,

0 commit comments

Comments
 (0)