graph-generators-0.1.1.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.

lineGraphSource

Arguments

:: Int

n: Number of nodes

-> GraphInfo