finished and debugged all methods except removeEdge and getNeighbors
fixed the merging issues