Calculates the shortest distance path between two nodes (based on the minimum amount of edges). The function also returns the total weight of the path, if the weight is not available, returns the number of edges.
# S3 method for intensitynet
ShortestNodeDistance(obj, node_id1, node_id2)
distance of the path and the nodes of the path
intensitynet object
id of the starting node
id of the end node