caesar0301 / treelib

An efficient implementation of tree data structure in python 2/3.
http://treelib.readthedocs.io/en/latest/
Other
800 stars 185 forks source link

Fixed bug when exporting to graphviz dot format as undirected graph #201

Closed tsoj closed 1 year ago

tsoj commented 2 years ago

When exporting to the graphviz dot format, the edge between nodes will always be "->" but when not exporting as "digraph" (but as undirected "graph"), the dot format requires the edgeop to be "--".

Feel free to fix this issue yourself, if that's more convenient than merging this pull request.