elkjs icon indicating copy to clipboard operation
elkjs copied to clipboard

How to create a tight tree-like layout for a network graph?

Open frankandrobot opened this issue 11 months ago • 2 comments

  • Context: this is for rendering networks of internet devices. Technically, our network graphs can be cyclic. But for the most part, they are trees w/ a few cycles.. Our network graphs are acyclic, and in fact, they are trees.
  • And so for the most part, we can render the graph like the screenshot
  • So what I'm asking for is how to create the layout for the screenshot.
  • In particular, this is a screenshot of a very large network (+300 nodes) rendered in a tight space.
  • So looking for ways to render a tree in a tight space with no overlapping edges.
  • Some more context: we're using another library to render the nodes. We're trying to use elkjs for the layout.
image

frankandrobot avatar Jul 20 '23 20:07 frankandrobot