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.
我有一个图表,其顶部有父节点,子节点层。每个子节点可以连接到一对多的父节点。
我正在构建一个视觉表示,并且我想对所有节点进行排序,以使交叉的连接线数量最少。
子节点应尽可能紧密地组合在一起。父母可以重新安排。
未优化:
优化:
另一个未优化: