Click or drag to resize

EdgeHelpersRelabelEdge Method

An edge is relabeled by creating a new edge with the same properties, but new label. Note that an edge is deleted and an edge is added.

Namespace:  VelocityGraph.Frontenac.Blueprints.Util
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax
public static IEdge RelabelEdge(
	this IEdge oldEdge,
	IGraph graph,
	Object newId,
	string newLabel
)

Parameters

oldEdge
Type: VelocityGraph.Frontenac.BlueprintsIEdge
the existing edge to "relabel"
graph
Type: VelocityGraph.Frontenac.BlueprintsIGraph
the graph to add the new edge to
newId
Type: SystemObject
the id of the new edge
newLabel
Type: SystemString
the label of the new edge

Return Value

Type: IEdge
the newly created edge

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEdge. 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