GraphHelpersAddVertex Method |
Add a vertex 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 IVertex AddVertex(
this IGraph graph,
Object id,
params Object[] properties
)
<ExtensionAttribute>
Public Shared Function AddVertex (
graph As IGraph,
id As Object,
ParamArray properties As Object()
) As IVertex
public:
[ExtensionAttribute]
static IVertex^ AddVertex(
IGraph^ graph,
Object^ id,
... array<Object^>^ properties
)
[<ExtensionAttribute>]
static member AddVertex :
graph : IGraph *
id : Object *
properties : Object[] -> IVertex
Parameters
- graph
- Type: VelocityGraph.Frontenac.BlueprintsIGraph
the graph to create a vertex in - id
- Type: SystemObject
the id of the vertex to create - properties
- Type: SystemObject
the properties of the vertex to add (must be string,object,string,object,...)
Return Value
Type:
IVertexthe vertex 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