isIncident method

bool isIncident(
  1. Node<num> node
)

Implementation

bool isIncident(Node<num> node) {
  return from == node || to == node;
}