Skip to content

Commit db9e8a2

Browse files
Fixes formatting
1 parent 384e3e5 commit db9e8a2

5 files changed

Lines changed: 12 additions & 10 deletions

File tree

src/pbcgraph/graph/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
99
Two container families are provided:
1010
11-
- :class:`~pbcgraph.graph.PeriodicDiGraph` / :class:`~pbcgraph.graph.PeriodicGraph`:
11+
- :class:`~pbcgraph.graph.PeriodicDiGraph` /
12+
:class:`~pbcgraph.graph.PeriodicGraph`:
1213
at most one edge per ``(u, v, tvec)``.
13-
- :class:`~pbcgraph.graph.PeriodicMultiDiGraph` / :class:`~pbcgraph.graph.PeriodicMultiGraph`:
14+
- :class:`~pbcgraph.graph.PeriodicMultiDiGraph` /
15+
:class:`~pbcgraph.graph.PeriodicMultiGraph`:
1416
allow multiple edges per ``(u, v, tvec)`` (distinguished by edge keys).
1517
"""
1618

src/pbcgraph/graph/directed.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
from types import MappingProxyType
56
from typing import (
67
TYPE_CHECKING,
78
Any,
@@ -814,5 +815,3 @@ def lift_patch(
814815
node_order=node_order,
815816
edge_order=edge_order,
816817
)
817-
818-

src/pbcgraph/graph/multidirected.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,3 @@ def add_edge(
3131
) -> EdgeKey:
3232
"""Add a directed periodic edge (parallel edges allowed)."""
3333
return self._add_edge_impl(u, v, tvec, key=key, attrs=dict(attrs))
34-
35-

src/pbcgraph/graph/undirected.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Any, Dict, Iterable, List, Optional, Tuple
5+
from typing import Any, Dict, Iterable, List, Optional
66

77
from pbcgraph.core.ordering import stable_tvec
88
from pbcgraph.core.types import EdgeKey, NodeId, TVec, neg_tvec, validate_tvec
@@ -319,5 +319,3 @@ def check_invariants(self, *, strict: bool = False) -> Dict[str, Any]:
319319
'errors': errors,
320320
'n_edges': int(self._g.number_of_edges()),
321321
}
322-
323-

tests/alg/lift/test_lift_patch.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import networkx as nx
22
import pytest
33

4-
from pbcgraph import PBC_META_KEY, PeriodicDiGraph, PeriodicGraph, PeriodicMultiGraph
4+
from pbcgraph import (
5+
PBC_META_KEY,
6+
PeriodicDiGraph,
7+
PeriodicGraph,
8+
PeriodicMultiGraph,
9+
)
510
from pbcgraph.core.exceptions import LiftPatchError
611

712

0 commit comments

Comments
 (0)