Choosing the type of graph