Add type on the graph