Skip to content

Commit 37a58ab

Browse files
authored
Merge pull request #13 from Mathics3/section-module-revision
Align better with WMA
2 parents cb9f847 + 72f42d6 commit 37a58ab

24 files changed

+1114
-978
lines changed

.isort.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[settings]
2+
# sort and black fight over the formatting of this file.
3+
# Remove when this issue is resolved.
4+
skip=pymathics/graph/base.py,pymathics/graph/properties.py

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ repos:
2121
language_version: python3
2222
exclude: 'pymathics/graph/version.py'
2323
stages: [commit]
24-
# - repo: https://github.com/pycqa/flake8
25-
# rev: 3.9.2
26-
# hooks:
27-
# - id: flake8
28-
# stages: [commit]
24+
- repo: https://github.com/pycqa/flake8
25+
rev: 3.9.2
26+
hooks:
27+
- id: flake8
28+
stages: [commit]

pymathics/graph/__init__.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@
1515

1616
from pymathics.graph.base import (
1717
AdjacencyList,
18-
AcyclicGraphQ,
1918
BetweennessCentrality,
2019
ClosenessCentrality,
21-
ConnectedGraphQ,
2220
DegreeCentrality,
2321
DirectedEdge,
24-
DirectedGraphQ,
2522
EdgeConnectivity,
2623
EdgeIndex,
2724
EdgeList,
@@ -32,36 +29,29 @@
3229
Graph,
3330
GraphAtom,
3431
GraphBox,
35-
HITSCentrality,
3632
HighlightGraph,
33+
HITSCentrality,
3734
KatzCentrality,
38-
LoopFreeGraphQ,
39-
MixedGraphQ,
40-
MultigraphQ,
4135
PageRankCentrality,
42-
PathGraphQ,
4336
Property,
4437
PropertyValue,
45-
SimpleGraphQ,
4638
UndirectedEdge,
4739
VertexAdd,
4840
VertexConnectivity,
4941
VertexDelete,
5042
VertexIndex,
5143
VertexList,
5244
)
53-
54-
from pymathics.graph.measures_and_metrics import EdgeCount, VertexCount, VertexDegree
55-
56-
from pymathics.graph.algorithms import (
57-
ConnectedComponents,
45+
from pymathics.graph.components import ConnectedComponents, WeaklyConnectedComponents
46+
from pymathics.graph.curated import GraphData
47+
from pymathics.graph.measures_and_metrics import (
48+
EdgeCount,
5849
GraphDistance,
59-
FindSpanningTree,
60-
PlanarGraphQ,
61-
WeaklyConnectedComponents,
50+
VertexCount,
51+
VertexDegree,
6252
)
63-
64-
from pymathics.graph.generators import (
53+
from pymathics.graph.operations import FindSpanningTree
54+
from pymathics.graph.parametric import (
6555
BalancedTree,
6656
BarbellGraph,
6757
BinomialTree,
@@ -70,17 +60,27 @@
7060
CycleGraph,
7161
FullRAryTree,
7262
GraphAtlas,
73-
GraphData,
7463
HknHararyGraph,
7564
HmnHararyGraph,
7665
KaryTree,
7766
LadderGraph,
78-
PathGraph,
79-
RandomGraph,
8067
RandomTree,
8168
StarGraph,
8269
)
83-
from pymathics.graph.tree import TreeGraphAtom, TreeGraph, TreeGraphQ
70+
from pymathics.graph.properties import (
71+
AcyclicGraphQ,
72+
ConnectedGraphQ,
73+
DirectedGraphQ,
74+
LoopFreeGraphQ,
75+
MixedGraphQ,
76+
MultigraphQ,
77+
PathGraphQ,
78+
PlanarGraphQ,
79+
SimpleGraphQ,
80+
)
81+
from pymathics.graph.random import RandomGraph
82+
from pymathics.graph.structured import PathGraph, TreeGraph
83+
from pymathics.graph.tree import TreeGraphAtom, TreeGraphQ
8484
from pymathics.graph.version import __version__
8585

8686
pymathics_version_data = {

pymathics/graph/algorithms.py

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)