Skip to content

Commit

Permalink
Merge from computgraph_zhiyi
Browse files Browse the repository at this point in the history
  • Loading branch information
houpc committed Dec 22, 2023
2 parents 94d854d + 466bddf commit a50bc01
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/backend/to_dot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(g.id)_$(id)_$gix->g$(g.id)_$(id)_$gix[arrowhead=vee,]\ng$(g.id)->g$(g.id)_$(id)_$gix[arrowhead=vee,]\n"
# arrow_temp *= "g$(g.id)_$(id)_$gix->$opr_name[arrowhead=vee,]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,]\n"
end
Expand Down Expand Up @@ -67,7 +67,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Prod}, id::Int, factor::F, subg
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(g.id)_$(id)_$gix->g$(g.id)_$(id)_$gix[arrowhead=vee,]\ng$(g.id)->g$(g.id)_$(id)_$gix[arrowhead=vee,]\n"
# arrow_temp *= "g$(g.id)_$(id)_$gix->$opr_name[arrowhead=vee,]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,]\n"
end
Expand Down Expand Up @@ -99,7 +99,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Power{N}}, id::Int, factor::F,
# subg_str = "g$(subgraphs[1].id)_$(id)[shape=box, label = <&otimes;>, style=filled, fillcolor=cornsilk,]\n"
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(subgraphs[1].id)_$(id)->g$(subgraphs[1].id)_$(id)[arrowhead=vee,]\ng$(subgraphs[1].id)->g$(subgraphs[1].id)_$(id)[arrowhead=vee,]\n"
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,]\n"
end
Expand Down Expand Up @@ -130,7 +130,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Sum}, id::Int, factor::F, subgr
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(g.id)_$(id)_$gix->g$(g.id)_$(id)_$gix[arrowhead=vee,]\ng$(g.id)->g$(g.id)_$(id)_$gix[arrowhead=vee,]\n"
# arrow_temp *= "g$(g.id)_$(id)_$gix->$opr_name[arrowhead=vee,]\n"
arrow_temp *= "g$(g.id)->$opr_name[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(g.id)->$opr_name[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(g.id)->$opr_name[arrowhead=vee,]\n"
end
Expand Down Expand Up @@ -169,7 +169,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Prod}, id::Int, factor::F, subg
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(g.id)_$(id)_$gix->g$(g.id)_$(id)_$gix[arrowhead=vee,]\ng$(g.id)->g$(g.id)_$(id)_$gix[arrowhead=vee,]\n"
# arrow_temp *= "g$(g.id)_$(id)_$gix->$opr_name[arrowhead=vee,]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(g.id)->g$(id)[arrowhead=vee,]\n"
end
Expand Down Expand Up @@ -201,7 +201,7 @@ function to_dotstatic(::Type{ComputationalGraphs.Power{N}}, id::Int, factor::F,
# subg_str = "g$(subgraphs[1].id)_$(id)[shape=box, label = <&otimes;>, style=filled, fillcolor=cornsilk,]\n"
# node_temp *= factor_str * subg_str
# arrow_temp *= "factor$(subgraphs[1].id)_$(id)->g$(subgraphs[1].id)_$(id)[arrowhead=vee,]\ng$(subgraphs[1].id)->g$(subgraphs[1].id)_$(id)[arrowhead=vee,]\n"
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,label=$gfactor]\n"
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,label=$gfactor,fontsize=16]\n"
else
arrow_temp *= "g$(subgraphs[1].id)->$opr_name[arrowhead=vee,]\n"
end
Expand Down

0 comments on commit a50bc01

Please sign in to comment.