You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2021. It is now read-only.
The following code builds a graph with two vertices and two edges but when using to_dot() the attributes of the edges do not show up in the output file.
using Graphs
nnodes = 2
nedges = 2
vlist = Array(ExVertex, nnodes)
for i = 1:nnodes
vlist[i] = ExVertex(i,"$i")
vlist[i].attributes["height"] = i
end
elist = Array(ExEdge{typeof(vlist[1])}, nedges)
elist[1] = ExEdge(1, vlist[1], vlist[2])
elist[1].attributes["color"] = "blue"
elist[2] = ExEdge(2, vlist[2], vlist[1])
elist[2].attributes["color"] = "red"
g = graph(vlist, elist, is_directed = true)
to_dot(g,"temp.txt")
The following code builds a graph with two vertices and two edges but when using to_dot() the attributes of the edges do not show up in the output file.
The content of temp.txt is
The vertices have their attributes but note the edges. Is that a bug or is there something wrong with my code?
Many thanks for any help!
The text was updated successfully, but these errors were encountered: