This program, given a directed graph, can calculate the shortest path between two nodes and the average distance between all nodes