Calculate the shortest path between all nodes of degree different to 2 that are connected with nodes of degree equal to 2 Calculate the distance between the above nodes.
calculateShortestPaths(..., AFMImageNetworksAnalysis)
cl: a cluster object from the parallel package