refactoring add edge
starting bipartate