Provide a color map based on the Connected Segments (Select > Segments > Connected Segments). For each disconnected group have a unique color assigned.