can find all paths for graph