dot

Can DOT produce a more structured graph?

一曲冷凌霜 提交于 2019-12-20 04:28:11
问题 I'm not really sure how to describe what my client wants, so I'll let a picture do most of the talking. I'm using DOT to produce graphs for what is more or less the bill of materials problem. (Show an incoming lot and all the outgoing lots, at all levels, that were created from the material in the incoming lot.) I've got the code to create a graph that contains the data structured appropriately. For example, I generate this GV file: digraph LotTrc { rankdir=LR; graph[label="Lot #AD626",

ANTLR4 parse tree to DOT using DOTGenerator

你离开我真会死。 提交于 2019-12-20 03:31:20
问题 How do I use DOTGenerator to convert a parse tree to DOT/graphviz format in ANTLR4? I found this related question but the only answer uses TreeViewer to display the tree in a JPanel and that's not what I'm after. This other question is exacly what I need but it didn't get answered. Everything else I stumbled upon relates to DOTTreeGenerator from ANTLR3 and it's not helpful. I'm using Java with the ANTLR4 plugin for IntelliJ. 回答1: I have a small project that has all kind of utility methods w.r

ANTLR4 parse tree to DOT using DOTGenerator

百般思念 提交于 2019-12-20 03:31:17
问题 How do I use DOTGenerator to convert a parse tree to DOT/graphviz format in ANTLR4? I found this related question but the only answer uses TreeViewer to display the tree in a JPanel and that's not what I'm after. This other question is exacly what I need but it didn't get answered. Everything else I stumbled upon relates to DOTTreeGenerator from ANTLR3 and it's not helpful. I'm using Java with the ANTLR4 plugin for IntelliJ. 回答1: I have a small project that has all kind of utility methods w.r

Unable to use dot layout (graphviz as a library)

旧时模样 提交于 2019-12-19 08:58:29
问题 I use graphviz (v2.28.0) as a library in a C++ application and I would like to render graphs using the dot layout. Everything works fine until I call the gvLayout(_context, _graph, "dot"); function which outputs the following error : Error: Layout type: "dot" not recognized. Use one of: I use the following library flags when linking : -lgvc -lgraph -lpathplan -lcdt -lgvplugin_dot_layout Calling dot from the Unix command line works as expected. What am I doing wrong ? 回答1: You probably either

how to write GraphViz subgraphs with boost::write_graphviz

自作多情 提交于 2019-12-19 07:56:09
问题 Is it possible to generate a DOT subgraph using ::boost::write_graphviz ? For instance, if I create a subgraph G0 in a graph G, can I get something like the following in the DOT output: graph G { subgraph G0 { ... } ... } 回答1: I finally figured out both how subgraphs work and how to use boost::write_graphviz to actually print these. The first requirement is "semi-documented" in a comment in the boost library source code: requires graph_name property . The most surprising requirement however

Excluding specific headers from dependency graphs

空扰寡人 提交于 2019-12-18 21:16:24
问题 I am not sure whether this is to be a doxygen or a dot question, but here goes. In my project I have many files that need to include common headers such stdlib.h , stdint.h , and so on. When I ask doxygen to generate the dependency graphs for each of my files, this leads to a lot of clutter and noise as the drawing tool always reuses existing nodes and never duplicates them. Can I somehow tell doxygen to exclude a set of headers from the generated graph, simply ignore them completely? I'd

Excluding specific headers from dependency graphs

旧街凉风 提交于 2019-12-18 21:15:13
问题 I am not sure whether this is to be a doxygen or a dot question, but here goes. In my project I have many files that need to include common headers such stdlib.h , stdint.h , and so on. When I ask doxygen to generate the dependency graphs for each of my files, this leads to a lot of clutter and noise as the drawing tool always reuses existing nodes and never duplicates them. Can I somehow tell doxygen to exclude a set of headers from the generated graph, simply ignore them completely? I'd

How to force all nodes in the same column in graphviz?

大兔子大兔子 提交于 2019-12-18 11:30:01
问题 I'm trying to model a certain flow using graphviz, and I can't figure out how to model the following graph to share the same horizontal center digraph exmp { A -> B -> C -> D C -> E [constraint=false] A -> C [style="dotted", constraint=false] A -> D [style="dotted", constraint=false] B -> D [constraint=false] D -> A [style="dashed", constraint=false] C -> A [style="dashed", constraint=false] subgraph cluster_hackToSinkIt { E -> F } { rank="sink" E F } } this results in the following graph: My

Family tree layout with Dot/GraphViz

回眸只為那壹抹淺笑 提交于 2019-12-18 09:55:49
问题 I am trying to draw a family tree with Dot and GraphViz. This is what I currently have: # just graph set-up digraph simpsons { ratio = "auto" mincross = 2.0 # draw some nodes "Abraham" [shape=box, regular=1, color="blue"] ; "Mona" [shape=box, regular=1, color="pink"] ; "Clancy" [shape=box, regular=1, color="blue"] ; "Jackeline" [shape=box, regular=1, color="pink"] ; "Herb" [shape=box, regular=1, color="blue"] ; "Homer" [shape=box, regular=1, color="blue"] ; "Marge" [shape=box, regular=1,

Family tree layout with Dot/GraphViz

大憨熊 提交于 2019-12-18 09:55:02
问题 I am trying to draw a family tree with Dot and GraphViz. This is what I currently have: # just graph set-up digraph simpsons { ratio = "auto" mincross = 2.0 # draw some nodes "Abraham" [shape=box, regular=1, color="blue"] ; "Mona" [shape=box, regular=1, color="pink"] ; "Clancy" [shape=box, regular=1, color="blue"] ; "Jackeline" [shape=box, regular=1, color="pink"] ; "Herb" [shape=box, regular=1, color="blue"] ; "Homer" [shape=box, regular=1, color="blue"] ; "Marge" [shape=box, regular=1,