@stoplight/graphite
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
IGraph
add
Edge
add
Node
apply
Patch
dehydrate
dom
move
Node
node
Values
notifier
patch
Source
Node
Prop
print
Tree
remove
Edge
remove
Node
report
Error
root
Nodes
set
Source
Node
Diagnostics
set
Source
Node
Prop
source
Nodes
virtual
Nodes
dispose
get
Node
ById
get
Node
ByUri
Graph
Type parameters
N
E
Hierarchy
IDisposable
INodeFinder
IPatchableGraph
IHydratable
<
IDehydratedGraph
>
IGraph
Index
Properties
add
Edge
add
Node
apply
Patch
dehydrate
dom
move
Node
node
Values
notifier
patch
Source
Node
Prop
print
Tree
remove
Edge
remove
Node
report
Error
root
Nodes
set
Source
Node
Diagnostics
set
Source
Node
Prop
source
Nodes
virtual
Nodes
Methods
dispose
get
Node
ById
get
Node
ByUri
Properties
add
Edge
add
Edge
:
function
Type declaration
(
sourceId
:
string
, targetId
:
string
, type
:
EdgeType
, data
?:
unknown
, trace
?:
ITraceData
)
:
EdgeInstance
Parameters
sourceId:
string
targetId:
string
type:
EdgeType
Optional
data:
unknown
Optional
trace:
ITraceData
Returns
EdgeInstance
add
Node
add
Node
:
function
Type declaration
<NodeType>
(
props
:
NodeType
, trace
?:
ITraceData
)
:
NodeInstance
Type parameters
NodeType
:
NodeWithOptionalId
Parameters
props:
NodeType
Optional
trace:
ITraceData
Returns
NodeInstance
apply
Patch
apply
Patch
:
function
Type declaration
(
patch
:
IGraphPatch
)
:
IGraphPatchResult
Parameters
patch:
IGraphPatch
Returns
IGraphPatchResult
dehydrate
dehydrate
:
function
Type declaration
(
)
:
IDehydratedGraph
Returns
IDehydratedGraph
dom
dom
:
IGraphDom
<
N
,
E
>
move
Node
move
Node
:
function
Type declaration
(
id
:
string
, newParentId
?:
string
|
null
, newPath
?:
undefined
|
string
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
Optional
newParentId:
string
|
null
Optional
newPath:
undefined
|
string
Optional
trace:
ITraceData
Returns
void
node
Values
node
Values
:
NodeInstance
[]
notifier
notifier
:
INotifier
patch
Source
Node
Prop
patch
Source
Node
Prop
:
function
Type declaration
(
id
:
string
, prop
:
SourceNodeProp
, patch
:
JsonPatch
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
prop:
SourceNodeProp
patch:
JsonPatch
Optional
trace:
ITraceData
Returns
void
print
Tree
print
Tree
:
function
Type declaration
(
)
:
string
Returns
string
remove
Edge
remove
Edge
:
function
Type declaration
(
id
:
string
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
Optional
trace:
ITraceData
Returns
void
remove
Node
remove
Node
:
function
Type declaration
(
id
:
string
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
Optional
trace:
ITraceData
Returns
void
report
Error
report
Error
:
function
Type declaration
(
nodeId
:
string
, err
:
ErrnoException
, trace
?:
ITraceData
)
:
void
Parameters
nodeId:
string
err:
ErrnoException
Optional
trace:
ITraceData
Returns
void
root
Nodes
root
Nodes
:
ISourceNodeInstance
[]
set
Source
Node
Diagnostics
set
Source
Node
Diagnostics
:
function
Type declaration
(
id
:
string
, source
:
string
, value
:
IDiagnostic
[]
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
source:
string
value:
IDiagnostic
[]
Optional
trace:
ITraceData
Returns
void
set
Source
Node
Prop
set
Source
Node
Prop
:
function
Type declaration
(
id
:
string
, prop
:
SourceNodeProp
, value
:
unknown
, trace
?:
ITraceData
)
:
void
Parameters
id:
string
prop:
SourceNodeProp
value:
unknown
Optional
trace:
ITraceData
Returns
void
source
Nodes
source
Nodes
:
ISourceNodeInstance
[]
virtual
Nodes
virtual
Nodes
:
IVirtualNodeInstance
[]
Methods
dispose
dispose
(
)
:
void
Returns
void
get
Node
ById
get
Node
ById
(
id
:
string
)
:
Optional
<
NodeInstance
>
Parameters
id:
string
Returns
Optional
<
NodeInstance
>
get
Node
ByUri
get
Node
ByUri
(
uri
:
string
)
:
Optional
<
NodeInstance
>
Parameters
uri:
string
Returns
Optional
<
NodeInstance
>
Graph