haskell-igraph-0.6.0: Haskell interface of the igraph library.

Safe HaskellNone
LanguageHaskell2010

IGraph.Structure

Synopsis

Documentation

inducedSubgraph :: (Hashable v, Eq v, Serialize v) => Graph d v e -> [Int] -> Graph d v e Source #

closeness Source #

Arguments

:: [Int]

vertices

-> Graph d v e 
-> Maybe [Double]

optional edge weights

-> Neimode 
-> Bool

whether to normalize

-> [Double] 

Closeness centrality

betweenness :: [Int] -> Graph d v e -> Maybe [Double] -> [Double] Source #

Betweenness centrality

eigenvectorCentrality :: Graph d v e -> Maybe [Double] -> [Double] Source #

Eigenvector centrality

pagerank Source #

Arguments

:: SingI d 
=> Graph d v e 
-> Maybe [Double]

Node weights or reset probability. If provided, the personalized PageRank will be used

-> Maybe [Double]

Edge weights

-> Double

damping factor, usually around 0.85

-> [Double] 

Google's PageRank algorithm, with option to