From: erg Date: Fri, 3 Apr 2009 18:26:07 +0000 (+0000) Subject: Fix bug in agdegree; out was being also used for in X-Git-Tag: LAST_LIBGRAPH~32^2~2191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81a8f75f46b32078e5efb5f7c2a15f508215dcf8;p=graphviz Fix bug in agdegree; out was being also used for in --- diff --git a/lib/cgraph/graph.c b/lib/cgraph/graph.c index e04a9da76..d2507daf8 100644 --- a/lib/cgraph/graph.c +++ b/lib/cgraph/graph.c @@ -230,7 +230,7 @@ int agdegree(Agraph_t * g, Agnode_t * n, int want_in, int want_out) sn = agsubrep(g, n); if (want_out) rv += cnt(g->e_seq,&(sn->out_seq)); - if (want_in) rv += cnt(g->e_seq,&(sn->out_seq)); + if (want_in) rv += cnt(g->e_seq,&(sn->in_seq)); return rv; }