How to know the paths by selected nodes

GSNode does not contain parent path. Are there ways to know the paths by selected node?

Of course the nodes have a ‘parent’ property.

Thanks