being able to generated two types of graph