You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strazto
changed the title
vis_drake_graph tends to get messy with more complex plans
vis_drake_graph tends to get messy with more complex plans, consider allowing visNetwork::visHierachicalLayout set the layout
Jun 29, 2020
That's so awesome! I had considered the default hierarchical layout before, but it was generating graphs with reversed edges. I had no idea about forceDirection. That's the piece we needed all along. Thank you so much! Let's absolutely do this.
Prework
drake
's code of conduct.Proposal
Presently,
vis_drake_graph()
tends to get pretty ugly when rendering my plan with the defaults.I will supply a
drake_graph_info()
object serialized asyaml
, and everything I use to deserialize it to illustrate my example.Reading the graph
The serialized dependency graph:
dependency_graph_yaml.txt
The outputs:
The custom-formatted dep graph
out_custom.html.txt
The default-formatted dep graph
out_default.html.txt
What's actually been changed?
The (dramatic) changes between these formats come from deferring to
visNetwork
's hierachical formatting functions:Rather than letting
drake
position the nodes itself, which does work for smaller graphs, but not for mine.I'm aware that as reprex's go, this could be more self-contained, but my dataset is the prime example for which I knew I could show these results.
The text was updated successfully, but these errors were encountered: