iVis-at-Bilkent / cytoscape.js-fcose

fCoSE: a fast Compound Spring Embedder
MIT License
137 stars 25 forks source link

[BUG] Crash when connecting between nodes within a group #5

Closed Ghost---Shadow closed 5 years ago

Ghost---Shadow commented 5 years ago

Minimum element array which causes the crash

[
  { data: { id: 'n0' } },
  { data: { id: 'n1', parent: 'n0' } },
  { data: { id: 'n2', parent: 'n0' } },
  { data: { id: 'e1', source: 'n1', target: 'n2' } },
];

error

Surrounding the block with a try catch works

expected

This is a fcose related issue as cytoscape-cose-bilkent does not crash.

I am also using react-cytoscapejs as the React wrapper for cytoscape

hasanbalci commented 5 years ago

@Ghost---Shadow The bug should be fixed in the unstable branch. Can you test and verify?

Ghost---Shadow commented 5 years ago

@hasanbalci The crash is fixed. You can close the isssue.