Skip to main content

spinglass_weighted

Function spinglass_weighted 

Source
pub fn spinglass_weighted(
    graph: &Graph,
    weights: &[f64],
) -> IgraphResult<SpinglassResult>
Expand description

Spinglass community detection with edge weights.

ยงErrors

Returns an error if the graph is disconnected, has fewer than 2 vertices, or if weights contain non-positive values.