getDependents method
Finds all components that depend on (watch/read) the given node ID.
Implementation
List<String> getDependents(String nodeId) {
return edges
.where(
(e) =>
e.toId == nodeId &&
(e.type == RelationshipType.watches ||
e.type == RelationshipType.reads),
)
.map((e) => e.fromId)
.toList();
}