show path based on edge