added direction both to node.getedges; added tests for removeNode