Skip to content
Gordon Woodhull edited this page Feb 21, 2019 · 3 revisions

What if...?

the layout is getting slower and slower?

(Also results in error Cannot read property 'cost' of undefined.)

If you are reusing the same cola.d3adaptor() for multiple steps of layout, you need to make sure you pass in the same node objects each time you call .start(...). This is because some layout state is stored within the node objects you pass in.

not all my constraints seem to be applied?

You probably have cycles in your constraint graph - see #61.