modularity_optimization_result

Function modularity_optimization_result 

Source
pub fn modularity_optimization_result<N, E, Ix>(
    graph: &Graph<N, E, Ix>,
    initial_temp: f64,
    cooling_rate: f64,
    max_iterations: usize,
) -> CommunityResult<N>
where N: Node + Clone + Hash + Eq + Debug, E: EdgeWeight + Into<f64> + Copy, Ix: IndexType,
Expand description

Optimizes modularity using simulated annealing (modern API)

Returns a standardized CommunityResult type that provides multiple ways to access the community structure.

§Arguments

  • graph - The graph to analyze
  • initial_temp - Initial temperature for simulated annealing
  • cooling_rate - Rate at which temperature decreases (0 < rate < 1)
  • max_iterations - Maximum number of iterations

§Returns

  • A CommunityResult with comprehensive community information