Added missing license and comment to build_reduced_graph