Graph Partitioning and Cuts
Graph Partitioning and Cuts
Assign data or processes evenly to a mesh of processors while minimizing the communication.
mesh = AdjacencyGraph[ExampleData[{"Matrix", "HB/blckhole"}, "Matrix"], VertexShapeFunction -> None, EdgeShapeFunction -> (Line[#]&), GraphLayout -> "SpectralEmbedding"]Short[FindGraphPartition[mesh, 4]]HighlightGraph[mesh, Subgraph[mesh, #]& /@ %, GraphHighlightStyle -> "DehighlightHide"]