Skip to content

Commit

Permalink
Merge pull request ariel-research#6 from OLAnetworkx/fix-rmm-rank-bug
Browse files Browse the repository at this point in the history
fix rmm test error of ariel-research#5
  • Loading branch information
oriyalperin authored Oct 29, 2023
2 parents 19d8980 + 04a52f0 commit 8977f8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def test_rank_maximal_matching_weight_argument(self):
assert M == matching

def test_rank_maximal_matching_skipped_ranks(self):
result_vector = {1:3, 4:1}
result_vector = [{1:3, 4:1},{1:3, 3:1}]
G = nx.Graph()
G.add_edges_from([("a1","p2"),("a2","p2"),("a3","p4"),("a4","p3"),("a5","p2")], rank=1)
G.add_edges_from([("a1","p3"),("a2","p3"),("a3","p2"),("a4","p2"),("a5","p4")], rank=2)
Expand All @@ -219,4 +219,4 @@ def test_rank_maximal_matching_skipped_ranks(self):
count_ranks = [G[agent][item]['rank']
for agent,item in M.items() if agent.startswith('a')]
V = Counter(count_ranks)
assert result_vector == dict(V)
assert dict(V) in result_vector

0 comments on commit 8977f8e

Please sign in to comment.