record incoming edges in the directed graph
add metapath object