Docs

Search documentation

Shared docs and current release

Loading search…

日本語

@shumoku/core · 0.6.1 · function

fromNetworkGraph

Source

Splits a drawn graph back into a model: the inverse of `toNetworkGraph` for what the configuration can say. A node drawn for a segment becomes the segment again. A graph carries nothing of the observation record, so none comes back.

fromNetworkGraph(graph: NetworkGraph): NetworkModel

Parameters

Parameter Type Description Default
graph NetworkGraph No additional description. —

Returns

NetworkModel

libs/@shumoku/core/src/libs/@shumoku/core/src/models/network-model-from-graph.ts:30