refactored GraphTest::addEdge test
Bipartite graph