Add toString() for Graph.
This commit is contained in:
부모
de6fa0698b
커밋
245744c4a0
1개의 변경된 파일과 6개의 추가작업 그리고 0개의 파일을 삭제
|
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
불러오는 중…
Reference in a new issue