d3 hypergraph with node type identification with color endented version