learning path graphs