powered by
The distance is measured as the number of edges that need to be traversed to reach node2 when starting from node1.
Distance(node1, node2)
the first node in the tree
the second node in the same tree
data(acme) Distance(FindNode(acme, "Outsource"), FindNode(acme, "Research"))
Run the code above in your browser using DataLab