Click or drag to resize

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


Type: VelocityGraph.Frontenac.BlueprintsIGraph
the graph to create a vertex in
Type: SystemObject
the id of the vertex to create
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