Node Fusion x4
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user