From 5071110bfbb4a30b44d5b3980e2611f50c7c7638 Mon Sep 17 00:00:00 2001 From: Lizhiyi Date: Mon, 25 Dec 2023 16:31:38 +0800 Subject: [PATCH] fix bug in to_dot --- src/backend/to_dot.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backend/to_dot.jl b/src/backend/to_dot.jl index 27f5a27f..02b3e31a 100644 --- a/src/backend/to_dot.jl +++ b/src/backend/to_dot.jl @@ -13,9 +13,9 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr # node_str = "g$(id)[shape=box, label = <>, 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)*>, style=filled, color = orange, fontsize=18, width = 0.8, height = 0.4]" + opr_node = "g$(id)[shape=box, label = <($factor)*>, style=filled, color = orange, fontsize=18, width = 0.8, height = 0.4]\n" else - opr_node = "g$(id)[shape=box, label = <>, style=filled, color= orange, fontsize=18, width = 0.5, height = 0.4]" + opr_node = "g$(id)[shape=box, label = <>, style=filled, color= orange, fontsize=18, width = 0.5, height = 0.4]\n" # opr_name = "g$id" end opr_name = "g$id" @@ -115,9 +115,9 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr # node_str = "g$(id)[shape=box, label = <>, 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)*>, style=filled, color=orange,fontsize=18, width = 0.8, height = 0.4]" + opr_node = "g$(id)[shape=box, label = <($factor)*>, style=filled, color=orange,fontsize=18, width = 0.8, height = 0.4]\n" else - opr_node = "g$(id)[shape=box, label = <>, style=filled, color=orange ,fontsize=18, width = 0.5, height = 0.4]" + opr_node = "g$(id)[shape=box, label = <>, style=filled, color=orange ,fontsize=18, width = 0.5, height = 0.4]\n" # opr_name = "g$id" end opr_name = "g$id"