Click or drag to resize

GraphAddEdge 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
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 8.2.1.0 (8.2.1)
Syntax
public virtual IEdge AddEdge(
	Object id,
	IVertex outVertex,
	IVertex inVertex,
	string label
)

Parameters

id
Type: SystemObject
the recommended object identifier
outVertex
Type: IVertex
the vertex on the tail of the edge
inVertex
Type: IVertex
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

Implements

IGraph.AddEdge(Object, IVertex, IVertex, String)
See Also