getFullVerticalPath method

  1. @override
Set<Node> getFullVerticalPath(
  1. Node node
)
override

Returns a list of all connected vertices from the given one.

From the root to the leaves.

Implementation

@override
Set<Node> getFullVerticalPath(Node node) {
  final upwardPath = getVerticalPathBetweenNodes(root, node);
  visitDepth(
    startNode: node,
    (node) {
      upwardPath.add(node);
      return VisitResult.continueVisit;
    },
  );

  return upwardPath;
}