Add toString() for Graph.
このコミットが含まれているのは:
コミット
245744c4a0
1個のファイルの変更、6行の追加、0行の削除
|
|
@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
読み込み中…
新しいイシューから参照