kosmos.partitioning.algorithms.capacity_partitioner¶
Classes¶
- class CapacityBasedPartitioner(network: kosmos.topology.net.Network | None, num_partitions: int | None)[source]¶
Bases:
kosmos.partitioning.algorithms.partitioning_algorithm.PartitioningAlgorithmNaive capacity-based partitioner.
Distributes nodes evenly across partitions, ignoring connectivity.
Initialize the partitioning algorithm.
- Parameters:
Methods