From: bdemsky Date: Wed, 23 May 2007 07:25:23 +0000 (+0000) Subject: change interface since we don't need this information - it is already in the edge X-Git-Tag: preEdgeChange~567 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=53afd60cc3c0e0cc50ecb2307fafd7076332fc63;p=IRC.git change interface since we don't need this information - it is already in the edge --- diff --git a/Robust/src/Util/GraphNode.java b/Robust/src/Util/GraphNode.java index 154ae591..cbe96016 100755 --- a/Robust/src/Util/GraphNode.java +++ b/Robust/src/Util/GraphNode.java @@ -103,6 +103,22 @@ public class GraphNode { return this.status; } + public int numedges() { + return edges.size(); + } + + public int numinedges() { + return inedges.size(); + } + + public Edge getedge(int i) { + return (Edge) edges.get(i); + } + + public Edge getinedge(int i) { + return (Edge) inedges.get(i); + } + public Iterator edges() { return edges.iterator(); } @@ -234,8 +250,8 @@ public class GraphNode { for(int i=0;i