ixfx
Preparing search index...
@ixfx/collections
Graphs
Directed
getOrCreate
Function getOrCreate
getOrCreate
(
graph
:
DirectedGraph
,
id
:
string
,
)
:
Readonly
<
{
graph
:
DirectedGraph
;
vertex
:
Graphs
.
Directed
.
Vertex
}
>
Gets a vertex by id, creating it if it does not exist.
Parameters
graph
:
DirectedGraph
id
:
string
Returns
Readonly
<
{
graph
:
DirectedGraph
;
vertex
:
Graphs
.
Directed
.
Vertex
}
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
ixfx
Loading...
Gets a vertex by id, creating it if it does not exist.