Topology ComputeDistribution function