Skip to content

Commit

Permalink
fix bug in to_dot
Browse files Browse the repository at this point in the history
  • Loading branch information
peter0627ustc committed Dec 25, 2023
1 parent cef74df commit 5071110
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/to_dot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr
# node_str = "g$(id)[shape=box, label = <<b>&otimes;</b>>, style=filled, fillcolor=cornsilk,]\n"
# arrow_temp *= "factor$(id)->g$(id)[arrowhead=vee,]\ng$(id)_t->g$(id)[arrowhead=vee,]\n"
# node_temp *= opr_fac * node_str
opr_node = "g$(id)[shape=box, label = <($factor)*<b>&oplus;</b>>, style=filled, color = orange, fontsize=18, width = 0.8, height = 0.4]"
opr_node = "g$(id)[shape=box, label = <($factor)*<b>&oplus;</b>>, style=filled, color = orange, fontsize=18, width = 0.8, height = 0.4]\n"
else
opr_node = "g$(id)[shape=box, label = <<b>&oplus;</b>>, style=filled, color= orange, fontsize=18, width = 0.5, height = 0.4]"
opr_node = "g$(id)[shape=box, label = <<b>&oplus;</b>>, style=filled, color= orange, fontsize=18, width = 0.5, height = 0.4]\n"
# opr_name = "g$id"
end
opr_name = "g$id"
Expand Down Expand Up @@ -115,9 +115,9 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr
# node_str = "g$(id)[shape=box, label = <<b>&otimes;</b>>, style=filled, fillcolor=cornsilk,]\n"
# arrow_temp *= "factor$(id)->g$(id)[arrowhead=vee,]\ng$(id)_t->g$(id)[arrowhead=vee,]\n"
# node_temp *= opr_fac * node_str
opr_node = "g$(id)[shape=box, label = <($factor)*<b>&oplus;</b>>, style=filled, color=orange,fontsize=18, width = 0.8, height = 0.4]"
opr_node = "g$(id)[shape=box, label = <($factor)*<b>&oplus;</b>>, style=filled, color=orange,fontsize=18, width = 0.8, height = 0.4]\n"
else
opr_node = "g$(id)[shape=box, label = <<b>&oplus;</b>>, style=filled, color=orange ,fontsize=18, width = 0.5, height = 0.4]"
opr_node = "g$(id)[shape=box, label = <<b>&oplus;</b>>, style=filled, color=orange ,fontsize=18, width = 0.5, height = 0.4]\n"
# opr_name = "g$id"
end
opr_name = "g$id"
Expand Down

0 comments on commit 5071110

Please sign in to comment.