Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
getModularity :: LabelVector -> AdjacencyMatrix -> Q Source #
Find modularity from a vector of community labels (0 or 1) corresponding to rows in the adjacency matrix. Needs 0s on the diagonal for the adjacency matrix.