try { _g.edgeLen(_n01, _n02); fail("edge not removed correctly in response to vertex removal"); } catch (IllegalArgumentException exception) {  } try { _g.edgeLen(_n01, _n03); fail("edge not removed correctly in response to vertex removal"); } catch (IllegalArgumentException exception) {  } try { _g.edgeLen(_n01, _n04); fail("edge not removed correctly in response to vertex removal"); } catch (IllegalArgumentException exception) {  }
	public void testAddRemove() {		System.out.println("testAddRemove");				assertTrue(false == _g.remove(new UVertex("foobar")));		assertTrue(false == _g.add(_n01));		assertTrue(false == _g.add(_e01));		assertTrue(false == _g.add(new DVertex("directed vertex")));		assertTrue(_g.findVertex("directed vertex") == null);		/* remove nodes (also tests edge removal) */		_g.remove(_n01);		// three edges should also be gone		assertTrue(null == _g.findVertex("n01"));		try {			_g.edgeLen(_n01, _n02);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}		try {			_g.edgeLen(_n01, _n03);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}		try {			_g.edgeLen(_n01, _n04);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}		// edges should not be added back in (make sure they were removed correctly)		_g.add(_n01);		try {			_g.edgeLen(_n01, _n02);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}		try {			_g.edgeLen(_n01, _n03);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}		try {			_g.edgeLen(_n01, _n04);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}				// these were removed from the node removal		_g.add(_e01);		_g.add(_e02);		_g.add(_e03);				assertTrue(_g.edgeLen(_n01, _n02) == 1.0);		assertTrue(_g.edgeLen(_n01, _n03) == 2.0);		assertTrue(_g.edgeLen(_n01, _n04) == 3.0);				_g.remove(_e01);		try {			_g.edgeLen(_n01, _n02);			fail("edge not removed correctly in response to vertex removal");		} catch (IllegalArgumentException exception) {			// correct bahavior		}	}