graph-generators-0.1.2.0: Functions for generating structured or random FGL graphs

Safe HaskellSafe

Data.Graph.Generators.Regular

Documentation

completeGraphSource

Arguments

:: Int

The number of nodes in the graph

-> GraphInfo

The resulting complete graph

completeGraphWithSelfloopsSource

Arguments

:: Int

The number of nodes in the graph

-> GraphInfo

The resulting complete graph

completeBipartiteGraphSource

Arguments

:: Int

The number of nodes in the first partition

-> Int

The number of nodes in the second partition

-> GraphInfo

The resulting graph

barbellGraphSource

Arguments

:: Int

The number of nodes in the complete bells

-> Int

The number of nodes in the path, i.e the number of nodes outside the bells

-> GraphInfo

The resulting barbell graph

generalizedBarbellGraphSource

Arguments

:: Int

The number of nodes in the first bell

-> Int

The number of nodes in the path, i.e. the number of nodes outside the bells

-> Int

The number of nodes in the second bell

-> GraphInfo

The resulting barbell graph

cycleGraphSource

Arguments

:: Int

n: Number of nodes in the circle

-> GraphInfo

The circular graph with n nodes.

pathGraphSource

Arguments

:: Int

n: Number of nodes

-> GraphInfo 

starGraphSource

Arguments

:: Int

n: Number of overall nodes

-> GraphInfo 

wheelGraphSource

Arguments

:: Int

n: Number of overall nodes

-> GraphInfo 

grid2DGraphSource

Arguments

:: Int

m: Number of rows in the grid

-> Int

n: Number of columns in the grid

-> GraphInfo