mosaicmpi.network.Network.compute_community_network_layout#
- Network.compute_community_network_layout(algorithm: str = 'spring', weight='weight', **kwargs)#
_summary_
- Parameters:
algorithm (str, optional) – Algorithm for layout of community network. Choose from “centroid” (centroid of all community programs based on the program graph), “spring”, and “neato” (from pyGraphViz, minimizes edge and node overlap). Defaults to “spring”, defaults to “spring”
weight (str, optional) – Edge weights. Options include: “weight” (sqrt(n_edges)), “n_edges” (number of edges), or a custom string which represents edge attributes in self.comm_graph. Defaults to “weight”
- Raises:
NotImplementedError – Error if invalid algorithm is chosen