toNodesAndConnections
Stentor API Reference / stentor-handler/src / toNodesAndConnections
Function: toNodesAndConnections()
toNodesAndConnections(
graph):object
Defined in: packages/stentor-handler/src/HandlerGraph/toNodesAndConnections.ts:56
Convert a graph to nodes and connections, a format required for display within a GUI.
This format is required by https://github.com/lightsinthesky/react-node-graph
Parametersβ
graphβ
Returnsβ
object
nodesβ
nodes:
object
Index Signatureβ
[id: string]: Node
connectionsβ
connections:
object
Index Signatureβ
[id: string]: Connection