Commit 8bb4ade8 authored by Grégoire Locqueville's avatar Grégoire Locqueville

Work with updated IGraph library

parent a08ceed7
Pipeline #7600 failed with stages
......@@ -55,9 +55,8 @@ type Seed = Int
-- | Tools to analyze graphs
clusteringWith_spinGlass :: (Serialize v, Serialize e)
=> Seed -> IG.Graph 'U v e -> IO [[Int]]
clusteringWith_spinGlass s g = do
gen <- IG.withSeed s pure
IG.findCommunity g Nothing Nothing IG.spinglass gen
clusteringWith_spinGlass seed graph = IG.withSeed seed $ \gen -> do
IG.findCommunity graph Nothing Nothing IG.spinglass gen
maximalCliques :: IG.Graph d v e -> [[Int]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment