graph_types function

Querying graph types