Replies: 3 comments 1 reply
-
Yes, this is more a Graphviz concept. RGL has a more algorithmic nature as already mentioned in #81. The RGL::DOT module is only for convenience included for quick graph visualization. So it depends which graph representation you have at hand. If you are on the Graphviz (DOT) level, you should eventually better work directly with the DOT language than with an RGL Graph. |
Beta Was this translation helpful? Give feedback.
-
I now understand your intention. I have never used the DOT subgraph feature together with RGL. So I guess you will have to experiment on your own. The only usage of DOT in RGL is in Graph#to_ dot_graph. The Suppose you have a RGL graph which has your colored subgraphs as vertices and induced edges from the flat graph. Then you could write a (rather complex) export to a dot graph with subgraphs... If your only intention is to visualize your file structure with no need for RGLs algorithms I would generate DOT graphs directly. |
Beta Was this translation helpful? Give feedback.
-
For now, I only want to make sure that the diagram that is being generated is correct. I'm aiming towards using that code as a basis for something more "interactive" and then I will need graph traversal anyway. |
Beta Was this translation helpful? Give feedback.
-
I am looking for a way to generate graph data that is handled as a
subgraph
by dot as per the Graphviz definition:https://graphviz.org/doc/info/lang.html#subgraphs-and-clusters
I would like to split some parts of my graph into subgraphs to control the rank and some styling options better than on the "full graph" level. I found the Subgraph method in the code documentation but this appears to be on the low level DOT implementation and not for the rgl interface itself (https://monora.github.io/rgl/RGL/DOT/Subgraph.html).
Beta Was this translation helpful? Give feedback.
All reactions