Click or drag to resize

GraphHelpersAddVertex Method

Add a vertex 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 IVertex AddVertex(
	this IGraph graph,
	Object id,
	params Object[] properties
)

Parameters

graph
Type: 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: IVertex
the 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