question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding code for graph layout

See original GitHub issue

Hi all, I’ve written some code to wrap different graph layout libraries. The basic interface is this:

trait Layouter {
  def layout[T](nodes: Seq[T], edges: Seq[(T, T)]): PartialFunction[T, NodeLocation]
}
case class NodeLocation(posX: Double, posY: Double)

I’ve got two implementations currently, one using Eclipse Zest and one using Eclipse GEF Layout.

The code is currently independent of scala-graph, so it could well reside in its own repository. On the other hand it would probably help discoverability to have it close to have the layouter in the project for graphs in Scala and I could add a small wrapper that exctracts the nodes and edges from a scala-graph.

What do you think?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nightscapecommented, Jun 6, 2020

@ShahOdin I pushed the minimal sources to the repo. I don’t know when I’ll find time to do the proper CI / publishing setup, but you might be lucky using JitPack 😉

1reaction
nightscapecommented, May 4, 2020

Hi @ShahOdin, great to hear! I’m leaning towards creating a separate repository to make it clear that the layouter works completely independently of scala-graph. I’ve created a (still empty) repository for it here: https://github.com/nightscape/graph-layout I’ll push the code there asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

microsoft/automatic-graph-layout: A set of tools for ... - GitHub
You can create a graph either programmatically or from a JSON object, have MSAGL create a layout for it, and then render it...
Read more >
Code Graph - Visual Studio Marketplace
Code Graph is a code visualization tool for Visual Studio 2012-2017 and allows one to explore the code conveniently. NOTE: For Visual Studio ......
Read more >
Change layout of graph plot - MATLAB layout - MathWorks
This MATLAB function changes the layout of graph plot H by using an automatic choice of layout method based on the structure of...
Read more >
Drawing — NetworkX 2.8.8 documentation
Drawing #. NetworkX provides basic functionality for visualizing graphs, but its main goal is to enable graph analysis rather than perform graph ......
Read more >
Tips on implementing a new layout algorithm in Graphviz
Overview of how other layouts are implemented. What files are most important? · What existing code we can draw upon? · Links to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found