A new network was then generated via filtering of the edges, excluding any connections between molecules for which the minimum distance was greater than 4.7 Å. The NetworkX connected components method was then used to obtain sets of disaccharides that remained connected after this filtering process, providing a measure of disaccharide aggregate sizes at each frame of the simulation. This data was then 'binned' into aggregate size distributions calculated from frames extracted every 100 ps during the final 500 ns of all replicate simulations of each disaccharide.