Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

reorder hierarchical layout #4

Open

Description

@cbizon

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.

Activity

  1. maximusunc commented on Apr 27, 2020

    @maximusunc
    Collaborator

    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#

  2. cbizon commented on Apr 27, 2020

    @cbizon
    Author

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions