GraphBaseTVertex, TEdgeValidateEdgeForAddition Method |
Validates if the edge passed in is addable to this graph structure. The start vertex and the end vertex for the are given as well. The same edge
is present between startVertex and endVertex and also between endVertex and startVertex if the graph is a nondirected graph, hence the necessity of these two
vertices in this routine
Namespace:
SD.Tools.Algorithmia.Graphs
Assembly:
SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.3.3.0 (1.3.18.0209)
Syntax protected virtual bool ValidateEdgeForAddition(
TEdge edgeToAdd,
TVertex startVertex,
TVertex endVertex
)
Protected Overridable Function ValidateEdgeForAddition (
edgeToAdd As TEdge,
startVertex As TVertex,
endVertex As TVertex
) As Boolean
Parameters
- edgeToAdd
- Type: TEdge
The edge to validate. - startVertex
- Type: TVertex
The start vertex the edge is starting from. - endVertex
- Type: TVertex
The end vertex the edge is leading to.
Return Value
Type:
Booleantrue if the edge can be added, false otherwise. Returning false results in the edge not being added
See Also