Node Fusion x4

This commit is contained in:
2023-05-27 15:38:10 +02:00
parent 572b0adf0f
commit 190a4252f8
2 changed files with 10 additions and 5 deletions

View File

@ -83,7 +83,7 @@ function main()
insert_edge(graph, make_edge(PB, d_PB_uB))
insert_edge(graph, make_edge(PA, d_PA_uA))
insert_edge(graph, make_edge(PBp, d_PBp_uBp))
insert_edge(graph, make_edge(PBp, d_PBp_uBp))
insert_edge(graph, make_edge(PAp, d_PAp_uAp))
insert_edge(graph, make_edge(d_PB_uB, uB))
@ -111,11 +111,16 @@ function main()
print(graph)
node_fusion(graph, PB, d_PB_uB, uB)
# fuse some things
fuse1 = node_fusion(graph, PB, d_PB_uB, uB)
fuse2 = node_fusion(graph, PA, d_PA_uA, uA)
fuse3 = node_fusion(graph, PBp, d_PBp_uBp, uBp)
fuse4 = node_fusion(graph, PAp, d_PAp_uAp, uAp)
# on this graph, nothing can be reduced
println("Same graph after node fusion")
print(graph)
end
main()