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
)
<ExtensionAttribute>
Public Shared Function RelabelEdge (
oldEdge As IEdge,
graph As IGraph,
newId As Object,
newLabel As String
) As IEdge
public:
[ExtensionAttribute]
static IEdge^ RelabelEdge(
IEdge^ oldEdge,
IGraph^ graph,
Object^ newId,
String^ newLabel
)
[<ExtensionAttribute>]
static member RelabelEdge :
oldEdge : IEdge *
graph : IGraph *
newId : Object *
newLabel : string -> IEdge
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:
IEdgethe 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