Node structure changed and calculating loop weight and edges between clusters