Click or drag to resize

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.4.0.0 (1.4.19.0711)
Syntax
protected virtual bool ValidateEdgeForAddition(
	TEdge edgeToAdd,
	TVertex startVertex,
	TVertex endVertex
)

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: Boolean
true if the edge can be added, false otherwise. Returning false results in the edge not being added
See Also