pub fn spinglass(
graph: &Graph,
weights: Option<&[f64]>,
) -> IgraphResult<SpinglassResult>Expand description
Spinglass community detection with default options.
The graph must be connected. Direction of edges is ignored.
ยงErrors
Returns an error if the graph is disconnected, has fewer than 2 vertices, or if weights contain negative values.