hasEdge method

bool hasEdge(
  1. String fromId,
  2. String toId
)

Check if an edge exists from fromId to toId.

Implementation

bool hasEdge(String fromId, String toId) {
  final fromNode = _nodes[fromId];
  return fromNode != null && fromNode.imports.contains(toId);
}