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
)
Function AddEdge (
id As Object,
outVertex As IVertex,
inVertex As IVertex,
label As String
) As IEdge
IEdge^ AddEdge(
Object^ id,
IVertex^ outVertex,
IVertex^ inVertex,
String^ label
)
abstract AddEdge :
id : Object *
outVertex : IVertex *
inVertex : IVertex *
label : string -> IEdge
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:
IEdgethe newly created edge
See Also