refactaring edge source and target
add refacting (not fix)