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.4.0.0 (1.4.19.0711)
Syntax public static TGraph Compose<TGraph>(
TGraph g,
TGraph h,
Func<TVertex, TVertex, TEdge> edgeProducerFunc
)
where TGraph : new(), GraphBase<TVertex, TEdge>
Public Shared Function Compose(Of TGraph As {New, GraphBase(Of TVertex, TEdge)}) (
g As TGraph,
h As TGraph,
edgeProducerFunc As Func(Of TVertex, TVertex, TEdge)
) As TGraph
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