1

Am I going about this this right way?

I have a file called input.txt that has data like this:

digraph G {
rankdir=LR
node [shape=box style=filled]
A->B
A->C
A->D
B->D
C->E
E->F
}

I then input that into dot.exe which creates the data.dot file:

C:\Graphviz\bin\dot.exe < input.txt > data.dot

Then I input the dot file back to create my svg file:

C:\Graphviz\bin\dot.exe -Tsvg data.dot > data.svg

It seems to work for a small amount of data in the input.txt file, but it seems to fail with larger data sets.

I replaced dot.exe with sfdp.exe but it creates nodes that overlap each other.

GFL
  • 1,278
  • 2
  • 15
  • 24
  • 2
    You may create the svg directly from your input file, something like `dot.exe -Tsvg input.txt >data.svg` – marapet Aug 28 '19 at 05:59
  • Maybe you want to try other layout engines besides `dot` and `sfdp`. There are also `circo`, `osage`, `neato` and `twopi`. – nikeee Aug 29 '19 at 19:57

0 Answers0