Anyone out there rendering DAGs or other types of ...
# compose-desktop
g
Anyone out there rendering DAGs or other types of graphs using Compose Desktop? My cursory search didn't show anything.
z
I made one for sequence diagrams, which aren’t really graphs but… http://www.zachklipp.com/compose-seqdiag/
g
Looks nice! Might even be relevant to one of my own use cases at some point. Thanks!
c
oleksandrbalan/minabox might be able to do what you need, though it would be a manual process. But I’d think you could pretty easily store the XY positions of the nodes to display in the MinaBox, then draw Bezier curves between those same coordinates
g
Thanks for the lead, Casey!
e
if it doesn't need to be dynamic, you could shell out to Graphviz for the graph layout and rendering
or pull in a Java library like JGraphX
g
I will shell out no more forever -- the lack of a "shell" concept in Java/Kotlin is a remarkable hole for a supposedly interoperable environment -- but that second idea, you're right, there are several libraries that can do the layout for me. Thanks!