Skip to content

Commit

Permalink
Add colour attribute to nodes in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
MHenderson committed Nov 14, 2024
1 parent c1ae6fc commit 357dd89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_first-permissible-or-none-node.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def test_first_permissible_or_none_node():
G = nx.complete_graph(3)
permissible_dict = {0: [0, 1], 1: [1, 2], 2: [2, 3]}
nx.set_node_attributes(G, permissible_dict, "permissible")
nx.set_node_attributes(G, None, "colour")
assert first_permissible_or_none_node(G, 0) == 0
assert first_permissible_or_none_node(G, 1) == 1
assert first_permissible_or_node_node(G, 2) == 2
assert first_permissible_or_none_node(G, 2) == 2

0 comments on commit 357dd89

Please sign in to comment.