Add toString() for Graph.
This commit is contained in:
parent
de6fa0698b
commit
245744c4a0
@ -115,4 +115,10 @@ public final class Graph implements Iterable<Node> {
|
|||||||
return new Graph("R/" + mapId, mapName, trNodes, graphStatistics);
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user