pub fn fluid_communities<N, E, Ix>(
graph: &Graph<N, E, Ix>,
num_communities: usize,
max_iterations: usize,
) -> CommunityStructure<N>👎Deprecated since 0.1.0-beta.2: Use
fluid_communities_result insteadExpand description
Fluid communities algorithm (legacy API)
Note: This function is deprecated in favor of fluid_communities_result.
It will be removed in version 2.0.
Fluid communities is a density-based algorithm where communities are formed by propagating “fluids” through the network. Each community starts with a seed node and expands by including neighboring nodes based on density.
§Arguments
graph- The graph to analyzenum_communities- Target number of communities to findmax_iterations- Maximum number of iterations
§Returns
- A community structure with node assignments and modularity