R color vertex igraph
I have a database with all the users and their roles, i've made a table that has usera, role, userb. i'm trying to give each user a color based on their team. the SQL code below can be used to create a similar dataset select concat('H',ABS(Checksum(NewID()) % 999999)) acentralacc, CONCAT('Role_',CHAR( FLOOR(65 + (RAND() * 25))))role,concat('H',ABS(Checksum(NewID()) % 999999))bcentralacc select concat('H',ABS(Checksum(NewID()) % 999999)) centralaccountname, CONCAT('Team_',CHAR( FLOOR(65 + (RAND() * 25))))team ' #get library's install.packages("igraph") library("igraph") #edges (connection