Table of Contents

Class RandomGraph

Namespace
AlgorithmsSW.EdgeWeightedDigraph
Assembly
AlgorithmsSW.dll
public static class RandomGraph
Inheritance
RandomGraph
Inherited Members

Methods

AddRandomWeights<TWeight>(IDigraph, IEnumerable<TWeight>)

public static IEdgeWeightedDigraph<TWeight> AddRandomWeights<TWeight>(this IDigraph digraph, IEnumerable<TWeight> generator)

Parameters

digraph IDigraph
generator IEnumerable<TWeight>

Returns

IEdgeWeightedDigraph<TWeight>

Type Parameters

TWeight

AddRandomWeights<TWeight>(Func<int, int, IDigraph>, int, int, IEnumerable<TWeight>)

public static IEdgeWeightedDigraph<TWeight> AddRandomWeights<TWeight>(Func<int, int, IDigraph> graphFactory, int vertexCount, int edgeCount, IEnumerable<TWeight> generator)

Parameters

graphFactory Func<int, int, IDigraph>
vertexCount int
edgeCount int
generator IEnumerable<TWeight>

Returns

IEdgeWeightedDigraph<TWeight>

Type Parameters

TWeight

AssignWeights<TWeight>(IReadOnlyDigraph, IEnumerable<TWeight>)

public static IEdgeWeightedDigraph<TWeight> AssignWeights<TWeight>(IReadOnlyDigraph graph, IEnumerable<TWeight> weights)

Parameters

graph IReadOnlyDigraph
weights IEnumerable<TWeight>

Returns

IEdgeWeightedDigraph<TWeight>

Type Parameters

TWeight

ErdosRenyiGraph<TWeight>(int, int, IEnumerable<TWeight>)

public static IEdgeWeightedDigraph<TWeight> ErdosRenyiGraph<TWeight>(int vertexCount, int edgeCount, IEnumerable<TWeight> generator)

Parameters

vertexCount int
edgeCount int
generator IEnumerable<TWeight>

Returns

IEdgeWeightedDigraph<TWeight>

Type Parameters

TWeight

SimpleGraph<TWeight>(int, int, IEnumerable<TWeight>)

public static IEdgeWeightedDigraph<TWeight> SimpleGraph<TWeight>(int vertexCount, int edgeCount, IEnumerable<TWeight> generator)

Parameters

vertexCount int
edgeCount int
generator IEnumerable<TWeight>

Returns

IEdgeWeightedDigraph<TWeight>

Type Parameters

TWeight