added paths method to print paths thru a graph