Skip to content

Commit

Permalink
format with black .
Browse files Browse the repository at this point in the history
  • Loading branch information
nwlandry committed Dec 12, 2024
1 parent eea372a commit 7f6db49
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
17 changes: 10 additions & 7 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,16 @@ def bipartite_dihypergraph1():
G = nx.DiGraph()
G.add_nodes_from([1, 2, 3, 4], bipartite=0)
G.add_nodes_from(["a", "b", "c"], bipartite=1)
G.add_edges_from([
("a", 1),
("b", 1, {"direction": "tail"}),
("b", 2),
("c", 2, {"direction": "tail"}),
("c", 3),
("a", 4, {"direction": "tail"})])
G.add_edges_from(
[
("a", 1),
("b", 1, {"direction": "tail"}),
("b", 2),
("c", 2, {"direction": "tail"}),
("c", 3),
("a", 4, {"direction": "tail"}),
]
)
return G


Expand Down
4 changes: 1 addition & 3 deletions tests/convert/test_bipartite_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ def test_from_bipartite_graph(
H = xgi.from_bipartite_graph(bipartite_graph4, dual=True)


def test_from_bipartite_graph_to_dihypergraph(
bipartite_dihypergraph1
):
def test_from_bipartite_graph_to_dihypergraph(bipartite_dihypergraph1):
H = xgi.from_bipartite_graph(bipartite_dihypergraph1)

assert set(H.nodes) == {1, 2, 3, 4}
Expand Down

0 comments on commit 7f6db49

Please sign in to comment.