Add toString() for Graph.

This commit is contained in:
Mikaël Capelle 2019-03-18 19:50:20 +01:00
parent de6fa0698b
commit 245744c4a0

View File

@ -115,4 +115,10 @@ public final class Graph implements Iterable<Node> {
return new Graph("R/" + mapId, mapName, trNodes, graphStatistics);
}
@Override
public String toString() {
return String.format("%s[id=%s, name=%s, #nodes=%d]", getClass().getCanonicalName(),
getMapId(), getMapName(), size());
}
}