Typed API (TypeDoc) / Edge
Class: Edge<T>
Defined in: graph/src/edge.ts:22
Type Parameters
T
T = Record<string, any>
Implements
IEdge<T>
Constructors
Constructor
new Edge<
T>(options?):Edge<T>
Defined in: graph/src/edge.ts:32
Parameters
options?
Returns
Edge<T>
Properties
data?
optionaldata:Record<string,any>
Defined in: graph/src/edge.ts:30
Implementation of
directed
directed:
boolean=false
Defined in: graph/src/edge.ts:27
Implementation of
from
from:
IVertex<T>
Defined in: graph/src/edge.ts:25
Implementation of
title
title:
string
Defined in: graph/src/edge.ts:24
Implementation of
to
to:
IVertex<T>
Defined in: graph/src/edge.ts:26
Implementation of
type?
optionaltype:string
Defined in: graph/src/edge.ts:29
Implementation of
uuid
uuid:
string
Defined in: graph/src/edge.ts:23
Implementation of
weight
weight:
number
Defined in: graph/src/edge.ts:28
Implementation of
Methods
getReverseEdge()
getReverseEdge():
IEdge<T>
Defined in: graph/src/edge.ts:62
Returns
IEdge<T>
the reverse edge, if existing
Implementation of
getVertices()
getVertices():
VerticesPair<T>
Defined in: graph/src/edge.ts:70
Returns
VerticesPair<T>
both ends of the edge [from, to]
Implementation of
isDirected()
isDirected():
boolean
Defined in: graph/src/edge.ts:54
Returns
boolean