OldGraphs.jl icon indicating copy to clipboard operation
OldGraphs.jl copied to clipboard

Modify to_dot

Open clclcocoro opened this issue 10 years ago • 2 comments

Thank you for creating the amazing library.

I noticed that to_dot() function did not print the edge attributes in Graphs.graph(ExVertex[], ExEdge{ExVertex}[], is_directed=false). I modified the corresponding line in src/dot.jl and added test codes to test/dot2.jl.

Would you please review these changes?

clclcocoro avatar Oct 15 '15 06:10 clclcocoro

to_dot shout also allow for preamble blocks as in

    graph [bgcolor=black]
    node [
        colorscheme="spectral10"
        shape=point
        ];
    edge [
        colorscheme="spectral10"
        ];

currently only isolated attributes=value pairs are allowed.

mschauer avatar Oct 22 '15 11:10 mschauer

I understood.

clclcocoro avatar Oct 25 '15 03:10 clclcocoro