Click or drag to resize
GraphBaseTVertex, TEdgeComposeTGraph Method
Returns a composition of the two provided graphs. See http://en.wikipedia.org/wiki/Lexicographic_product_of_graphs.

Namespace: SD.Tools.Algorithmia.Graphs
Assembly: SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.14.1118)
Syntax
public static TGraph Compose<TGraph>(
	TGraph g,
	TGraph h,
	Func<TVertex, TVertex, TEdge> edgeProducerFunc
)
where TGraph : new(), GraphBase<TVertex, TEdge>

Parameters

g
Type: TGraph
The first graph to compose.
h
Type: TGraph
The second graph to compose.
edgeProducerFunc
Type: SystemFuncTVertex, TVertex, TEdge
The edge producer func, which is used to produce edges for the graph to return.

Type Parameters

TGraph
The type of the graph.

Return Value

Type: TGraph
The graph composition (lexicographic product) of the two provided graphs.
See Also