I m分析其附属地的一些法典。 让我们说,有一些相互交织的亲属,例如:
F
A /|
| / |
| / |
V < V
B<--->C--->E
/ |
> < |
D<------+
B depends on A and C C depends on B and F E depends on C and F D depends on B and C and E
We have a problem with B and C, they depend on each other. They should be combined into a super-node. We have a problem with C and E and F, they have a cycle. They should be combined into a super-node.
您将结束发言。
A
|
V
super
node
|
|
D
Is there a good library or algorithm source (Java prefered, but open to suggestions) that allows for such reduction?
周期中的任何节点都合并为单一节点。 凡是提到新 no子的任何节点,都应指明新的节点。 新的 no子中任何 no子指出的任何 no子都应使新的 no子指明这一 no子。
感谢!