Find path in graph