@Override
	public String toString()
	{
		String g = G().V() + " vertices " + G().E() + " edges\n";
		for (int v = 0; v < G().V(); v++)
		{
			g += name(v) + "(" + v + "): ";
			for (int w : G().adj(v))
				g += name(w) + "(" + w + "), ";
			g += "\n";
		}
		return g;
	}