Graph works locally, but I get a ton of syntax errors on all web-based renderers

I have been trying to use graphviz renderers such as http://www.webgraphviz.com or the Google chart rendering service to render my dot file. This chart has been tested repeatedly and works fine using the command line on my machine, as well as the GraphViz OS X app, but every chart rendering online service I've tried fails with many errors (e.g. if I remove the piece of code there's another error, if I remove that there's yet another error, etc).

The first error is: Error: :2: syntax error near line 2 context: graph [rankdir = >>> "LR"; <<< ranksep = 0; nodesep = 0.1; ]

If I remove that line, it then gives me: Error: :2: syntax error near line 2 context: "Gliese 581" [ label = "Gliese >>> 581"; <<< shape = ellipse]

It seems to have errors with almost anything within quotation marks. The file extension is .dot when saved as a file to use with either the GraphViz app or the command line program. Here is the input file:
digraph "Redland" {
graph [rankdir = "LR"; ranksep = 0; nodesep = 0.1; ]
"Gliese 581" [ label = "Gliese 581"; shape = ellipse]
"Gliese 581" -> "Rabbit_Lagrange" [label="Rabbit ΔV\n0 A";dir=none; weight=5; style=bold;]
"Rabbit_Lagrange" [ label = "Rabbit"; shape = ellipse]
"Rabbit_Lagrange" -> "Weeker_Lagrange" [label="Weeker ΔV\n0 A";dir=none; weight=5; style=bold;]
"Weeker_Lagrange" [ label = "Weeker"; shape = ellipse]
"Weeker_Lagrange" -> "Roast_Lagrange" [label="Roast ΔV\n0 A";dir=none; weight=5; style=bold;]
"Roast_Lagrange" [ label = "Roast"; shape = ellipse]
"Roast_Lagrange" -> "Redland_Lagrange" [label="Redland ΔV\n0 A";dir=none; weight=5; style=bold;]
"Redland_Lagrange" [ label = "Redland"; shape = ellipse]
"Redland_Lagrange" -> "Travers_Lagrange" [label="Travers ΔV\n0 A";dir=none; weight=5; style=bold;minlen = 4; ]
"Travers_Lagrange" [ label = "Travers"; shape = ellipse]

"Rabbit" [ label = "Rabbit"; shape = ellipse]
"Rabbit" -> "Rabbit_Low Orbit" [label="8k ΔV\nPSC 3";dir=none; weight=3; color=blue;]
"Rabbit_Low Orbit" [ label = "◌"; shape = plaintext]
"Rabbit_Low Orbit" -> "Rabbit_Lagrange" [label="7000 ΔV\nA 2";dir=none; weight=3; color=blue;]
"Rabbit_Lagrange" [ label = "◎"; shape = plaintext]

{rank = same; "Rabbit"; "Rabbit_Low Orbit"; "Rabbit_Lagrange"}

"Weeker" [ label = "Weeker"; shape = ellipse]
"Weeker" -> "Weeker_Low Orbit" [label="16k ΔV\nPSC 4";dir=none; weight=3; color=blue;]
"Weeker_Low Orbit" [ label = "◌"; shape = plaintext]
"Weeker_Low Orbit" -> "Salt_Lagrange" [label="500 ΔV\nA 3";dir=none; weight=3; color=blue;]
"Salt_Lagrange" [ label = "Salt"; shape = ellipse]
"Salt_Lagrange" -> "Pepper_Lagrange" [label="400 ΔV\nA 2";dir=none; weight=3; color=blue;]
"Pepper_Lagrange" [ label = "Pepper"; shape = ellipse]
"Pepper_Lagrange" -> "Weeker_Lagrange" [label="4000 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Weeker_Lagrange" [ label = "◎"; shape = plaintext]

{rank = same; "Weeker"; "Weeker_Low Orbit"; "Salt_Lagrange"; "Pepper_Lagrange"; "Weeker_Lagrange"}

"Roast" [ label = "Roast"; shape = ellipse]
"Roast" -> "Roast_Low Orbit" [label="14k ΔV\nPSC 4";dir=none; weight=3; color=blue;]
"Roast_Low Orbit" [ label = "◌"; shape = plaintext]
"Roast_Low Orbit" -> "Roast_Lagrange" [label="1000 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Roast_Lagrange" [ label = "◎"; shape = plaintext]

{rank = same; "Roast"; "Roast_Low Orbit"; "Roast_Lagrange"}

"Redland" [ label = "Redland"; shape = ellipse]
"Redland" -> "Redland_Low Orbit" [label="12k ΔV\nPSC 5";dir=none; weight=3; color=blue;]
"Redland_Low Orbit" [ label = "◌"; shape = plaintext]
"Redland_Low Orbit" -> "Clock_Lagrange" [label="Clock ΔV\n0 A";dir=none; weight=3; color=blue;]
"Clock_Lagrange" [ label = "Clock"; shape = ellipse]
"Clock_Lagrange" -> "Redland_Lagrange" [label="800 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Redland_Lagrange" [ label = "◎"; shape = plaintext]

{rank = same; "Redland"; "Redland_Low Orbit"; "Clock_Lagrange"; "Redland_Lagrange"}

"Travers" [ label = "Travers"; shape = ellipse]
"Travers" -> "Travers_Low Orbit" [label="2k ΔV\nA 2";dir=none; weight=3; color=blue;]
"Travers_Low Orbit" [ label = "◌"; shape = plaintext]
"Travers_Low Orbit" -> "A Ring_Lagrange" [label="200 ΔV\nA 1";dir=none; weight=3; color=blue;]
"A Ring_Lagrange" [ label = "A Ring"; shape = ellipse]
"A Ring_Lagrange" -> "Freeman_Lagrange" [label="400 ΔV\nA 2";dir=none; weight=3; color=blue;]
"Freeman_Lagrange" [ label = "Freeman"; shape = ellipse]
"Freeman_Lagrange" -> "Earth Warp Bridge_Lagrange" [label="400 ΔV\nA 2";dir=none; weight=3; color=blue;]
"Earth Warp Bridge_Lagrange" [ label = "Earth Warp Bridge"; shape = ellipse]
"Earth Warp Bridge_Lagrange" -> "Bo_Lagrange" [label="300 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Bo_Lagrange" [ label = "Bo"; shape = ellipse]
"Bo_Lagrange" -> "Spring_Lagrange" [label="300 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Spring_Lagrange" [ label = "Spring"; shape = ellipse]
"Spring_Lagrange" -> "Jason_Lagrange" [label="300 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Jason_Lagrange" [ label = "Jason"; shape = ellipse]
"Jason_Lagrange" -> "Sirius Warp Bridge_Lagrange" [label="300 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Sirius Warp Bridge_Lagrange" [ label = "Sirius Warp Bridge"; shape = ellipse]
"Sirius Warp Bridge_Lagrange" -> "Travers_Lagrange" [label="700 ΔV\nA 1";dir=none; weight=3; color=blue;]
"Travers_Lagrange" [ label = "◎"; shape = plaintext]

{rank = same; "Travers"; "Travers_Low Orbit"; "A Ring_Lagrange"; "Freeman_Lagrange"; "Earth Warp Bridge_Lagrange"; "Bo_Lagrange"; "Spring_Lagrange"; "Jason_Lagrange"; "Sirius Warp Bridge_Lagrange"; "Travers_Lagrange"}

"Salt" [ label = "Salt"; shape = ellipse]
"Salt" -> "Salt_Low Orbit" [label="500 ΔV\nPSC 2";dir=none; weight=1; color=gray;]
"Salt_Low Orbit" [ label = "◌"; shape = plaintext]
"Salt_Low Orbit" -> "Salt_Lagrange" [label="500 ΔV\nA 3";dir=none; weight=1; color=gray;]
"Salt_Lagrange" [ label = "◎"; shape = plaintext]

"Pepper" [ label = "Pepper"; shape = ellipse]
"Pepper" -> "Pepper_Low Orbit" [label="800 ΔV\nPSC 3";dir=none; weight=1; color=gray;]
"Pepper_Low Orbit" [ label = "◌"; shape = plaintext]
"Pepper_Low Orbit" -> "Pepper_Lagrange" [label="400 ΔV\nA 2";dir=none; weight=1; color=gray;]
"Pepper_Lagrange" [ label = "◎"; shape = plaintext]

"Clock" [ label = "Clock"; shape = ellipse]
"Clock" -> "Clock_Low Orbit" [label="2k ΔV\nPSC 5";dir=none; weight=1; color=gray;]
"Clock_Low Orbit" [ label = "◌"; shape = plaintext]
"Clock_Low Orbit" -> "Clock_Lagrange" [label="500 ΔV\nA 3";dir=none; weight=1; color=gray;]
"Clock_Lagrange" [ label = "◎"; shape = plaintext]

"Freeman" [ label = "Freeman"; shape = ellipse]
"Freeman" -> "Freeman_Low Orbit" [label="700 ΔV\nPSC 3";dir=none; weight=1; color=gray;]
"Freeman_Low Orbit" [ label = "◌"; shape = plaintext]
"Freeman_Low Orbit" -> "Freeman_Lagrange" [label="1200 ΔV\nA 2";dir=none; weight=1; color=gray;]
"Freeman_Lagrange" [ label = "◎"; shape = plaintext]

"Earth Warp Bridge" [ label = "Earth Warp Bridge"; shape = ellipse]
"Earth Warp Bridge" -> "Earth Warp Bridge_Low Orbit" [label="1000 ΔV\nPSC 5";dir=none; weight=1; color=gray;]
"Earth Warp Bridge_Low Orbit" [ label = "◌"; shape = plaintext]
"Earth Warp Bridge_Low Orbit" -> "Earth Warp Bridge_Lagrange" [label="700 ΔV\nA 2";dir=none; weight=1; color=gray;]
"Earth Warp Bridge_Lagrange" [ label = "◎"; shape = plaintext]

"Jason" [ label = "Jason"; shape = ellipse]
"Jason" -> "Jason_Low Orbit" [label="200 ΔV\nPSC 1";dir=none; weight=1; color=gray;]
"Jason_Low Orbit" [ label = "◌"; shape = plaintext]
"Jason_Low Orbit" -> "Jason_Lagrange" [label="400 ΔV\nA 3";dir=none; weight=1; color=gray;]
"Jason_Lagrange" [ label = "◎"; shape = plaintext]

"Bo" [ label = "Bo"; shape = ellipse]
"Bo" -> "Bo_Low Orbit" [label="500 ΔV\nPSC 2";dir=none; weight=1; color=gray;]
"Bo_Low Orbit" [ label = "◌"; shape = plaintext]
"Bo_Low Orbit" -> "Bo_Lagrange" [label="600 ΔV\nA 1";dir=none; weight=1; color=gray;]
"Bo_Lagrange" [ label = "◎"; shape = plaintext]

"Spring" [ label = "Spring"; shape = ellipse]
"Spring" -> "Spring_Low Orbit" [label="500 ΔV\nPSC 2";dir=none; weight=1; color=gray;]
"Spring_Low Orbit" [ label = "◌"; shape = plaintext]
"Spring_Low Orbit" -> "Spring_Lagrange" [label="700 ΔV\nA 1";dir=none; weight=1; color=gray;]
"Spring_Lagrange" [ label = "◎"; shape = plaintext]

"Sirius Warp Bridge" [ label = "Sirius Warp Bridge"; shape = ellipse]
"Sirius Warp Bridge" -> "Sirius Warp Bridge_Low Orbit" [label="1000 ΔV\nPSC 5";dir=none; weight=1; color=gray;]
"Sirius Warp Bridge_Low Orbit" [ label = "◌"; shape = plaintext]
"Sirius Warp Bridge_Low Orbit" -> "Sirius Warp Bridge_Lagrange" [label="500 ΔV\nA 1";dir=none; weight=1; color=gray;]
"Sirius Warp Bridge_Lagrange" [ label = "◎"; shape = plaintext]

} (I have multiple, script-generated input files, they all exhibit the same problem.)

I don't know the reason, but

I don't know the reason, but the problem appears to be the optional semicolon used in attribute lists. Dropping that at least makes http://www.webgraphviz.com work. For example,

  graph [rankdir = "LR" ranksep = 0 nodesep = 0.1 ]

 

Recent comments