Is this legal?

I was watching Nick Jame’s Monster Track video and realized that the guys riding their bikes are all over the place like a swarm of bees!

So I’m curious to know…is it legal to ride like that? You know what I mean right? Going in and out of traffic, between cars, next to cabs and what not.