datavis-tech / graph-data-structure

A graph data structure with topological sort and shortest path algorithms.
MIT License
249 stars 46 forks source link

Make target node a string in serialization #12

Closed curran closed 8 years ago

curran commented 8 years ago

Somehow target nodes are coming out as integers in the serialization. They should be strings.

{
  "nodes": [
    {
      "id": "59"
    },
    {
      "id": "60"
    },
    {
      "id": "61"
    }
  ],
  "links": [
    {
      "source": "60",
      "target": 59
    },
    {
      "source": "61",
      "target": 59
    }
  ]
}
curran commented 8 years ago

part of https://github.com/datavis-tech/reactive-model/issues/31

May be solvable in reactive-function

curran commented 8 years ago

Solved in https://github.com/datavis-tech/reactive-function/issues/13