Added reduced data (successive dups removed) and initial graph code