isIncidentEdgeInResult method

bool isIncidentEdgeInResult()

Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.

@return true if any incident edge in the in the result

Implementation

bool isIncidentEdgeInResult() {
  for (Iterator it = getEdges()!.getEdges().iterator; it.moveNext();) {
    DirectedEdge de = it.current;
    if (de.getEdge().isInResult()) return true;
  }
  return false;
}