Implemented testSubgraph
Implemented mapEdges