Click or drag to resize
GraphGeneratorBipartite Method (Int32, Int32, Double)
Returns a random simple bipartite graph on V1 and V2 vertices, containing each possible edge with probability p.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static Graph Bipartite(
	int V1,
	int V2,
	double p
)

Parameters

V1
Type: SystemInt32
the number of vertices in one partition
V2
Type: SystemInt32
the number of vertices in the other partition
p
Type: SystemDouble
the probability that the graph contains an edge with one endpoint in either side

Return Value

Type: Graph
a random simple bipartite graph on V1 and V2 vertices, containing each possible edge with probability p
Exceptions
ExceptionCondition
ArgumentExceptionif probability is not between 0 and 1
See Also