connectTo method

void connectTo(
  1. CallGraphNode n
)

Create outgoing edge from this node to the given node n.

Implementation

void connectTo(CallGraphNode n) {
  if (n == this) {
    return;
  }

  if (!succ.contains(n)) {
    n.pred.add(this);
    succ.add(n);
  }
}