Query to find all the nodes that are two steps away from a particular node.
- by iecut
Suppose I have two columns in a table that represents a graph, the first column is a FROMNODE
and second one is TONODE.
What I would like to know is that how will we find all the nodes that are two steps away from a particular node.
Lets suppose I have a node numbered '1' and i would like to know all the nodes that are two steps away from it.
I…