Safe Haskell | None |
---|---|
Language | Haskell2010 |
- erdosRenyiGraph :: GenIO -> Int -> Double -> IO GraphInfo
- erdosRenyiGraph' :: Int -> Double -> IO GraphInfo
- erdosRenyiContext :: GenIO -> Int -> [Int] -> Double -> IO GraphContext
- selectWithProbability :: GenIO -> Double -> [a] -> IO [a]
Graph generators
Graph component generators
:: GenIO | The random number generator to use |
-> Int | Identifier of the context's central node |
-> [Int] | The algorithm will generate random edges to those nodes from or to the given node |
-> Double | The probability for any pair of nodes to be connected |
-> IO GraphContext | The resulting graph (IO required for randomness) |