emicklei / dot

Go package for writing descriptions using the Graphviz DOT and Mermaid language
MIT License
282 stars 19 forks source link

Undirected Graphs Do Not Generate Syntactically Correct Dot #7

Closed drewrip closed 5 years ago

drewrip commented 5 years ago

The example shown of using directed graphs generate functional Dot, however using the undirected option creates Dot code that does not compile. Using the dot.Undirected option uses digraph when creating the initial graph but the edges in the Dot code are still denoted with a directed ->. This does not compile and needs to have an option when generating the edges that are not directed to switch this.