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
)
Public Function NewEdgeType (
name As String,
biderectional As Boolean,
tailType As VertexType,
headType As VertexType,
Optional baseType As EdgeType = Nothing
) As EdgeType
public:
EdgeType^ NewEdgeType(
String^ name,
bool biderectional,
VertexType^ tailType,
VertexType^ headType,
EdgeType^ baseType = nullptr
)
member NewEdgeType :
name : string *
biderectional : bool *
tailType : VertexType *
headType : VertexType *
?baseType : EdgeType
(* Defaults:
let _baseType = defaultArg baseType null
*)
-> EdgeType
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:
EdgeTypeUnique edge type.
Return Value
Type:
EdgeTypea new edge type
See Also