getFullVerticalPath method
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;
}