This function takes an integer vector (representing membership of a community or component) and creates a character vector of colors for each community/module, component, etc. This only assigns a color to groups with at least 2 members; isolated vertices will be colored 'gray'.
An integer vector representing membership of e.g. a community
A character vector with length equal to the number of communities, lobes, components, etc.