flow_graph: Add generate_blocks
flow_graph: Add graphical printing