GraphViz: Compress automatically generated graph

后端 未结 1 1599
南笙
南笙 2021-01-01 06:25

I am trying to visualize two columns of an an Excel file: Column A contains categories, while Column B contains individual entries. The dot file is generated by Excel using

相关标签:
1条回答
  • 2021-01-01 06:59

    Here's an idea:

    • Instead of one graph with x clusters create a dot file with x graphs
    • unflatten them
    • then use gvpack to pack all graphs together
    • and neato to layout

    The basic idea is to use graphs instead of clusters so you can use gvpack to pack the graphs.

    Something like:

    unflatten -f -l 4 -c 6 input.dot | dot | gvpack -array_t6 | neato -s -n2 -Tpng -o output.png
    

    Not sure though whether unflatten handles files with several graphs.

    (Sorry, no time to check it).

    0 讨论(0)
提交回复
热议问题