added MCMGraph class