Add toString() for Graph.
这个提交包含在:
父节点
de6fa0698b
当前提交
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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用