Regarding the Region Boundary based RAGs, I am not clear about the code on defining edges_rgb, if I perform the RAG analysis over a gray image, why I need to transfer the edges into rgb color?
edges_rgb = color.gray2rgb(edges)
g = graph.rag_boundary(labels, edges)
lc = graph.show_rag(labels, g, edges_rgb, img_cmap=None, edge_cmap='viridis',
edge_width=1.2)