Models Module

Contains generic functions for creating model graphs

Functions and values

Function or value Description

erdosRenyi newGraph fVertexKey fAddVertex fAddEdge vertexCount edgeCount

Full Usage: erdosRenyi newGraph fVertexKey fAddVertex fAddEdge vertexCount edgeCount

Parameters:
    newGraph : 'Graph
    fVertexKey : int -> 'Vertex
    fAddVertex : 'Vertex -> 'Graph -> 'Graph
    fAddEdge : 'Vertex -> 'Vertex -> 'Graph -> 'Graph
    vertexCount : int
    edgeCount : int

Returns: 'Graph
newGraph : 'Graph
fVertexKey : int -> 'Vertex
fAddVertex : 'Vertex -> 'Graph -> 'Graph
fAddEdge : 'Vertex -> 'Vertex -> 'Graph -> 'Graph
vertexCount : int
edgeCount : int
Returns: 'Graph

gilbert newGraph fVertexKey fAddVertex fAddEdge vertexCount p

Full Usage: gilbert newGraph fVertexKey fAddVertex fAddEdge vertexCount p

Parameters:
    newGraph : 'Graph
    fVertexKey : int -> 'Vertex
    fAddVertex : 'Vertex -> 'Graph -> 'Graph
    fAddEdge : 'Vertex -> 'Vertex -> 'Graph -> 'Graph
    vertexCount : int
    p : float

Returns: 'Graph
newGraph : 'Graph
fVertexKey : int -> 'Vertex
fAddVertex : 'Vertex -> 'Graph -> 'Graph
fAddEdge : 'Vertex -> 'Vertex -> 'Graph -> 'Graph
vertexCount : int
p : float
Returns: 'Graph