From: arif Date: Wed, 21 May 2008 17:52:29 +0000 (+0000) Subject: animation implemented X-Git-Tag: LAST_LIBGRAPH~32^2~4030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=074664365b9517c0fdc5073fc2f875d8fa4c84bf;p=graphviz animation implemented colorinf problem exists --- diff --git a/lib/topfish/hierarchy.c b/lib/topfish/hierarchy.c index 131087795..af3d8fbec 100644 --- a/lib/topfish/hierarchy.c +++ b/lib/topfish/hierarchy.c @@ -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) {