I am analyzing some code for its dependencies. Let's say there are some intertwined dependencies, for example:
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 in a super-node. We have a problem with C and E and F, they have a loop. They must be combined in a super-node.
As a result, you get
A | V super node | | D
Is there a good library or source of the algorithm (preferred by Java, but open to suggestions) that allows such a reduction?
Any nodes of the cycle are combined into one node. Any node pointing to any node in a new node must point to a new node. Any node that any node in the new node points to should cause the new node to point to node.
Thanks!
algorithm dependency-management
corsiKa
source share