d3 hypergraph with node type identification with color