add shortest path ccalculation to reachabilitygraohs