Visnetwork Color Nodes By Group, You can add properties … Arguments graph : a visNetwork object groups : Character/vector.