I am trying to allow an entire graph (such as a collapsible dendrogram (http://mbostock.github.com/d3/talk/20111018/tree.html) to be moved in the visualization by using the centroid of the entire graph and do not know what the best course of action would be to treat this graph as a discrete node and to use the centroid coordinates for manipulation. How would the centroid of a graph be calculated, allowing for the graph to be dynamically sized to allow for new nodes, thereby recalculating the centroid?
質問する
1066 次
2 に答える
-1
おそらくこれが役に立ちます: http://graphstream-project.org/doc/Algorithms/Centroid_1.0/。D3.js のコンテキストで質問していることは知っています。しかし、GraphStream のセントロイドから活用できるものがあるかもしれません。
于 2013-10-01T20:13:48.547 に答える