add find function
add find common edges to first memory mode