Add a new node to the graph

Show how to create a node

import { createGraph, addNodeInPlace } from '@ertrzyiks/graph-utils'

const graph = createGraph()
addNodeInPlace(graph, { id: '1' })
addNodeInPlace(graph, { id: '2' })
addNodeInPlace(graph, { id: '3' })
{
  "nodes": {
    "1": {
      "id": "1",
      "data": {},
      "edges": {}
    },
    "2": {
      "id": "2",
      "data": {},
      "edges": {}
    },
    "3": {
      "id": "3",
      "data": {},
      "edges": {}
    }
  }
}