Use type instead of name in graph labels