Add has node, del node and del edge methods with tests