graphite-0.5.0.1: Graphs and networks library

Safe HaskellSafe
LanguageHaskell2010

Data.Graph.Generation

Synopsis

Documentation

erdosRenyi :: Graph g => Int -> Float -> IO (g Int ()) Source #

Generate a random Erdős–Rényi G(n, p) model graph of n vertices with a | p connection probability

erdosRenyiU :: Int -> Float -> IO (UGraph Int ()) Source #

erdosRenyi convinience UGraph generation function

erdosRenyiD :: Int -> Float -> IO (DGraph Int ()) Source #

erdosRenyi convinience DGraph generation function

randomMat :: Int -> IO [[Int]] Source #

Generate a random square binary matrix | Useful for use with fromAdjacencyMatrix