Click or drag to resize

Graph.NewEdgeType Method (String, Boolean, VertexType, VertexType, EdgeType)

Creates a new edge type.

Namespace:  VelocityGraph
Assembly:  VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax
public EdgeType NewEdgeType(
	string name,
	bool biderectional,
	VertexType tailType,
	VertexType headType,
	EdgeType baseType = null
)

Parameters

name
Type: System.String
Unique name for the new edge type.
biderectional
Type: System.Boolean
If true, this creates a biderectional edge type, otherwise this creates a unidirectional edge type.
tailType
Type: VelocityGraph.VertexType
a fixed tail VertexType
headType
Type: VelocityGraph.VertexType
a fixed head VertexType
baseType (Optional)
Type: VelocityGraph.EdgeType
if specified make the new EdgeType a subclass of this EdgeType

Return Value

Type: EdgeType
Unique edge type.

Return Value

Type: EdgeType
a new edge type
See Also