graphType function

Get Graph Type