Edinburgh has built its own ugly reputation for street gangs over the decades, with generations of violent thugs graduating from its ranks.