the system calls the graph and  evaluate the distance for an example
requirement