Loop edges are not counted when an array of colours is assigned to label colours. The colour of a loop and all following edge labels have the wrong color. other attributes seem ok.
g<-matrix(c(
1,2 #first edge
,1,1 #second edge
,2,3) #third edge
,nrow=3,ncol=2,byrow = T)
g<-graph_from_edgelist(g, directed = F)
cols<-c('red','green','blue')
plot(g
,edge.color = cols
,edge.label.color = cols
,edge.label= cols
)
Loop edges are not counted when an array of colours is assigned to label colours. The colour of a loop and all following edge labels have the wrong color. other attributes seem ok.