Add toString() for Graph.
Cette révision appartient à :
Parent
de6fa0698b
révision
245744c4a0
1 fichiers modifiés avec 6 ajouts et 0 suppressions
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Chargement…
Référencer dans un nouveau ticket