"""
==========================
Region Boundary based RAGs
==========================

This example demonstrates construction of region boundary based RAGs with the
`rag_boundary` function.
"""
from skimage.future import graph
from skimage import data, segmentation, color, filters, io

img = data.coffee()
gimg = color.rgb2gray(img)

labels = segmentation.slic(img, compactness=30, n_segments=400)
edges = filters.sobel(gimg)
edges_rgb = color.gray2rgb(edges)

g = graph.rag_boundary(labels, edges)

out = graph.draw_rag(labels, g, edges_rgb, node_color="#ffff00",
                     colormap='jet')

io.imshow(out)
io.show()

@@ -278,16 +278,59 @@
 ers, io%0A
+from skimage.util.colormap import viridis%0A%0A
 %0Aimg = d
@@ -596,14 +596,14 @@
 r=%22#
-ffff00
+999999
 %22,%0A 
@@ -635,13 +635,15 @@
 map=
-'jet'
+viridis
 )%0A%0Ai

change mcap to viridis