Click or drag to resize

GraphHelpersAddEdge Method

Add an edge to the graph with specified id and provided properties.

Namespace:  Frontenac.Blueprints.Util
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 10.1.0.0 (10.1)
Syntax
public static IEdge AddEdge(
	this IGraph graph,
	Object id,
	IVertex outVertex,
	IVertex inVertex,
	string label,
	params Object[] properties
)

Parameters

graph
Type: Frontenac.BlueprintsIGraph
the graph to create the edge in
id
Type: SystemObject
the id of the edge to create
outVertex
Type: Frontenac.BlueprintsIVertex
the outgoing/tail vertex of the edge
inVertex
Type: Frontenac.BlueprintsIVertex
the incoming/head vertex of the edge
label
Type: SystemString
the label of the edge
properties
Type: SystemObject
the properties of the edge to add (must be string,object,string,object,...)

Return Value

Type: IEdge
the edge created in the graph with the provided properties set

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGraph. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also