Click or drag to resize

IGraphAddEdge Method

Add an edge to the graph. The added edges requires a recommended identifier, a tail vertex, an head vertex, and a label. Like adding a vertex, the provided object identifier may be ignored by the implementation.

Namespace:  VelocityGraph.Frontenac.Blueprints
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax
IEdge AddEdge(
	Object id,
	IVertex outVertex,
	IVertex inVertex,
	string label
)

Parameters

id
Type: SystemObject
the recommended object identifier
outVertex
Type: VelocityGraph.Frontenac.BlueprintsIVertex
the vertex on the tail of the edge
inVertex
Type: VelocityGraph.Frontenac.BlueprintsIVertex
the vertex on the head of the edge
label
Type: SystemString
the label associated with the edge

Return Value

Type: IEdge
the newly created edge
See Also