Tonight, I tried performing the directed graph on an example from the JointJS website. See the Discrete Event example:
http://resources.jointjs.com/demos/devs
Even though the source code link is not mapped correctly, I found it here:
https://raw.githubusercontent.com/clientIO/joint/master/demo/devs/src/shapes.devs.js
I’m in a situation where I cannot predict what position to place objects, as in the demo. Therefore, I’m relying on a DirectedGraph to do the job. So, as a simple example, I simply put the following at the end of the code to see what would happen:
joint.layout.DirectedGraph.layout(graph, {
setLinkVertices: false
});
Notice in the console emits an error:
"Uncaught TypeError: Cannot set property 'rank' of undefined" — dare.core.js 3085
This is the exact problem I’m having in my software. The only solution I've found so far is to removed any embedded cells. Is this a bug or is the demo outdated? I've searched the documentation with little success. Has anyone had this problem? Can anyone get the demo to work with a DirectedGraph?