Initial version of mapEdges and BFS|Neighbourhood graph