Click or drag to resize

GraphNewEdgeType 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: SystemString
Unique name for the new edge type.
biderectional
Type: SystemBoolean
If true, this creates a biderectional edge type, otherwise this creates a unidirectional edge type.
tailType
Type: VelocityGraphVertexType
a fixed tail VertexType
headType
Type: VelocityGraphVertexType
a fixed head VertexType
baseType (Optional)
Type: VelocityGraphEdgeType
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