Method for finding all nodes that precede a given node in the network