GraphHelpersAddEdge Method |
Add an edge to the graph with specified id and provided properties.
Namespace:
VelocityGraph.Frontenac.Blueprints.Util
Assembly:
VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax public static IEdge AddEdge(
this IGraph graph,
Object id,
IVertex outVertex,
IVertex inVertex,
string label,
params Object[] properties
)
<ExtensionAttribute>
Public Shared Function AddEdge (
graph As IGraph,
id As Object,
outVertex As IVertex,
inVertex As IVertex,
label As String,
ParamArray properties As Object()
) As IEdge
public:
[ExtensionAttribute]
static IEdge^ AddEdge(
IGraph^ graph,
Object^ id,
IVertex^ outVertex,
IVertex^ inVertex,
String^ label,
... array<Object^>^ properties
)
[<ExtensionAttribute>]
static member AddEdge :
graph : IGraph *
id : Object *
outVertex : IVertex *
inVertex : IVertex *
label : string *
properties : Object[] -> IEdge
Parameters
- graph
- Type: VelocityGraph.Frontenac.BlueprintsIGraph
the graph to create the edge in - id
- Type: SystemObject
the id of the edge to create - outVertex
- Type: VelocityGraph.Frontenac.BlueprintsIVertex
the outgoing/tail vertex of the edge - inVertex
- Type: VelocityGraph.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:
IEdgethe 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