In my onBeforeCompute callback, I'm filtering nodes/edges based on certain criteria and setting the .ignore attribute on adjacencies as well as recomputing the node._depth starting from the new root node, which in this case results in the node that was clicked on having no parent nodes (because it is now the root).
I think it is harmless to make this change, if someone would like to incorporate it.
In $jit.RGraph's onClick function, the line
is failing because obj.parent = false. To make it work, I needed to move the call to
down one line after
In my onBeforeCompute callback, I'm filtering nodes/edges based on certain criteria and setting the .ignore attribute on adjacencies as well as recomputing the node._depth starting from the new root node, which in this case results in the node that was clicked on having no parent nodes (because it is now the root).
I think it is harmless to make this change, if someone would like to incorporate it.
Thanks.