eclipse / elk

Eclipse Layout Kernel - Automatic layout for Java applications.
https://www.eclipse.org/elk/
Other
250 stars 83 forks source link

python equivalent of elk.alg.layered #320

Closed Nic30 closed 6 years ago

Nic30 commented 6 years ago

Hello, do you know about any python library with functionality of elk.alg.layered?

uruuru commented 6 years ago

What functionality are you referring to, exactly?

The NetworkX package has several drawing routines and afaik you can call graphviz from it. The dot layouter is also based on the Sugiyama method and thus produces results similar to elk.layered.

Nic30 commented 6 years ago

I would like to generate diagrams like one below: 1

As far as I know elk.alg.layered can do this, but does not have support for hierarchical ports, but it can be emulated. I was looking for another opensource library which can do same thing and I have found only original project from Kiel.

Nic30 commented 6 years ago

I am asking because I would like to do a python port and:

uruuru commented 6 years ago

I wouldn't recommend porting/re-implementing the code. But maybe it's an option for you to spawn a layout process in Java that you can communicate with from python?

Nic30 commented 6 years ago

@uruuru You are right, edge routers has more dependencies than I expected, I was thinking that it is possible to get rid of most of the layout processors but it is not that easy.

I will implement python interface which will use ElkGraphJson.