graphite-0.4.2.0: Graphs and networks library

Safe HaskellSafe
LanguageHaskell2010

Data.Graph.Generation

Synopsis

Documentation

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

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

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

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