ranking-agent / gamma-viewer

MIT License
0 stars 2 forks source link

reorder hierarchical layout #4

Open cbizon opened 4 years ago

cbizon commented 4 years ago

The hierarchical layout does this funny thing sometimes:

Given this question: image

we get this answer

image

but the hiearchical layout is muddling the order. The original question is a line going diseaes-gene-chemical, but the answer is drawn as disease-chemical-gene.

maximusunc commented 4 years ago

It doesn't seem like I have many more choices in regards to how it orders nodes in the hierarchical view. Right now, the graph is set to "directed" ordering, but I don't think we want hubsize. You can check the documentation here to see what options we have: https://visjs.github.io/vis-network/docs/network/layout.html#

cbizon commented 4 years ago

I wonder if it's because the edges are directed, so it sees both the blue and red nodes as equal children of the green node. I agree, those options don't give much obvious to play with.