Beispiel #1
0
 /**
  * Test if a Node has all Edges to the same Nodes and another Node.
  *
  * @param n the node of interest
  * @return true if this Node has all Edges to the sames Nodes as n
  */
 public boolean hasEquivalentLeavingEdges(Node n) {
   if (leavingEdges.size() != n.getLeavingEdges().size()) {
     return false;
   }
   for (Edge e : leavingEdges) {
     Node toNode = e.getToNode();
     if (!n.hasEdgeToNode(toNode)) {
       return false;
     }
   }
   return true;
 }