EdgeTypeGetEdge Method (Int32, Boolean, Boolean) |
Gets an edge given an edge id. Throws if no such edge exist.
Namespace:
VelocityGraph
Assembly:
VelocityGraph (in VelocityGraph.dll) Version: 11.1.0.0 (11.1)
Syntax public Edge GetEdge(
int edgeId,
bool polymorphic = false,
bool errorIfNotFound = true
)
Public Function GetEdge (
edgeId As Integer,
Optional polymorphic As Boolean = false,
Optional errorIfNotFound As Boolean = true
) As Edge
public:
Edge^ GetEdge(
int edgeId,
bool polymorphic = false,
bool errorIfNotFound = true
)
member GetEdge :
edgeId : int *
?polymorphic : bool *
?errorIfNotFound : bool
(* Defaults:
let _polymorphic = defaultArg polymorphic false
let _errorIfNotFound = defaultArg errorIfNotFound true
*)
-> Edge
Parameters
- edgeId
- Type: SystemInt32
The id of the edge - polymorphic (Optional)
- Type: SystemBoolean
If true and id isn't found in this EdgeType continue search into sub types - errorIfNotFound (Optional)
- Type: SystemBoolean
Indicate what to do if Edge does not exist
Return Value
Type:
EdgeThe edge with matching id if it exists
See Also