Computes the connections between substructures.
Compute all connections.