()
| 3839 | } |
| 3840 | |
| 3841 | function graphNodesById() { |
| 3842 | const nodes = uniqueGraphNodes([ |
| 3843 | ...(state.wikiMap?.nodes || []), |
| 3844 | ...(state.wikiGraph?.nodes || []), |
| 3845 | ...(state.wikiNodes || []) |
| 3846 | ]); |
| 3847 | return Object.fromEntries(nodes.map((node) => [graphId(node), node])); |
| 3848 | } |
| 3849 | |
| 3850 | function currentGraphEdges() { |
| 3851 | return (state.wikiGraph?.edges || []).map(normalizeGraphEdge); |
no test coverage detected