I pick a node, lets say 'p4', then find all of its parents. I am interested in tagging all nodes that are connected to 'p4 with a label that represents how far they are from 'p4'. I came up with the code below.
MATCH upstream_path = (interesting_part...