Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 JUNG FRLayout,所有节点都被推到视图的边界,有没有办法避免这种情况?吸引力和排斥力都设置为 0.75 和 maxIter=100,尽管对于所有值都观察到这种行为
您必须使用的变量是:
当然,您也可以尝试其他布局算法。
在你的情况下,我会尝试增加边缘吸引力,可能还有布局大小。