inspecting path functions and extracting relationships into an array