Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

elk.hierarchyHandling INCLUDE_CHILDREN and elk.direction #26

Closed
tylerlong opened this issue Apr 30, 2018 · 5 comments
Closed

elk.hierarchyHandling INCLUDE_CHILDREN and elk.direction #26

tylerlong opened this issue Apr 30, 2018 · 5 comments
Labels
elk Issue in ELK itself. enhancement question

Comments

@tylerlong
Copy link

tylerlong commented Apr 30, 2018

According to #4, if I want to create edges between hierarchical nodes, I need to set elk.hierarchyHandling to INCLUDE_CHILDREN

  {
    "id": "org.eclipse.elk.hierarchyHandling",
    "name": "Hierarchy Handling",
    "description": "If this option is set to SEPARATE_CHILDREN, each hierarchy level of the graph is processed independently, possibly by different layout algorithms, beginning with the lowest level. If it is set to INCLUDE_CHILDREN, the algorithm is responsible to process all hierarchy levels that are contained in the associated parent node. If the root node is set to inherit (or not set at all), the default behavior is SEPARATE_CHILDREN.",
    "group": "",
    "type": "ENUM",
    "targets": [
      "PARENTS",
      "NODES"
    ]
  },

Problem is: I can no longer set elk.direction for children nodes, it always use parent settings.

So question is: is it possible for the parent nodes and children nodes to have different elk.direction, and also to have edges between hierarchical nodes?

@uruuru
Copy link
Member

uruuru commented Apr 30, 2018

Due to the way we handle the hierarchical edges, it is not possible at the moment. I'm not sure if @le-cds has anything on the agenda to make it work. I don't think so though.

@uruuru
Copy link
Member

uruuru commented Jul 11, 2020

I'll close this issue. It's not something we plan to work on in the near future.

@Vesper0704
Copy link

In 0.8.2, setting 'elk.hierarchyHandling': 'SEPARATE_CHILDREN' for child node helps to give a different direction, but the hierarchical edges are not allowed anymore. Will this be supported in the future? since using hierarchical ports are not so convenient in some scenarios, especially there are lots of nodes and levels. Thanks!

@soerendomroes
Copy link
Member

@Vesper0704 I once worked on a new hierarchy handling mode that creates the necessary dummy ports and edges for you, however, that proved to be not straightforward.
The progress on this matter is tracked in this ELK issue.

@Vesper0704
Copy link

@Vesper0704 I once worked on a new hierarchy handling mode that creates the necessary dummy ports and edges for you, however, that proved to be not straightforward. The progress on this matter is tracked in this ELK issue.

Thanks for letting me know. I'll pay continuous attention to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
elk Issue in ELK itself. enhancement question
Projects
None yet
Development

No branches or pull requests

4 participants