graphite-0.2.1.0: Graphs and networks library

Safe HaskellSafe
LanguageHaskell2010

Data.Graph.Generation

Synopsis

Documentation

erdosRenyiIO :: Graph g => Int -> Probability -> IO (g Int ()) Source #

Generate a random Erdős–Rényi G(n, p) model graph

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

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