From a84279657f4957fc5a7ffb4e5ef0df587984eb8a Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Wed, 25 Feb 2015 10:42:47 +0100 Subject: Graph: dominators computation can only be done regarding to *one* head The 'get_all_parents' is replaced by 'reachable_parents' --- test/core/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/core/graph.py') diff --git a/test/core/graph.py b/test/core/graph.py index eb896cfe..e7078cdb 100644 --- a/test/core/graph.py +++ b/test/core/graph.py @@ -32,7 +32,7 @@ g1.add_edge(5, 2) g1.add_edge(2, 6) -dominators = g1.compute_dominators() +dominators = g1.compute_dominators(1) assert(dominators[1] == set([1])) assert(dominators[2] == set([1, 2])) assert(dominators[3] == set([1, 2, 3])) -- cgit 1.4.1