Skip to content

Commit

Permalink
dotstring w/ time (nodeinfo): gray (dot html label)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfiers committed Jan 29, 2023
1 parent 6a7fa47 commit 4a5bcd7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/DotString/DotString.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function to_dot_str(
addline(str)
end
for (m, n) in edges
if !isnothing(faded) && any(faded, [m, n])
if (!isnothing(faded) && any(faded, [m, n]))
addline("$m -> $n [color=gray]")
else
addline("$m -> $n")
Expand All @@ -47,7 +47,10 @@ function to_dot_str(
isnothing(nodeinfo) || for node in vertices(edges)
if node in keys(nodeinfo)
info = nodeinfo[node]
addline("$node [label=\"$node\\n$info\"]")
# https://graphviz.org/doc/info/shapes.html#html
addline("""$node [label=<$node<br/>
<font color="gray">$info</font>>]"""
)
end
end
isnothing(relsize) || for node in vertices(edges)
Expand Down

0 comments on commit 4a5bcd7

Please sign in to comment.