Checked functionality until primitive_generation

Left: primitive_selection, graph_construction