added graph.cpp - graph generation program