]> granicus.if.org Git - graphviz/commitdiff
animation implemented
authorarif <devnull@localhost>
Wed, 21 May 2008 17:52:29 +0000 (17:52 +0000)
committerarif <devnull@localhost>
Wed, 21 May 2008 17:52:29 +0000 (17:52 +0000)
colorinf problem exists

lib/topfish/hierarchy.c

index 131087795700bad768a5a84aa1420f88e83b89bb..af3d8fbecf6a5c58161838b6eb761ee930f94913 100644 (file)
@@ -1520,6 +1520,20 @@ find_active_ancestor(Hierarchy * hierarchy, int level, int node)
     else
        return -1;
 }
+int
+find_old_active_ancestor(Hierarchy * hierarchy, int level, int node)
+{
+    int active_level = hierarchy->geom_graphs[level][node].old_active_level;
+    while (active_level > level) {
+       node = hierarchy->v2cv[level][node];
+       level++;
+    }
+
+    if (active_level == level) 
+       return hierarchy->geom_graphs[level][node].globalIndex;
+    else
+       return -1;
+}
 
 void init_active_level(Hierarchy* hierarchy, int level) 
 {