Groups of friends can be incestuous. If you stay in a circle long enough, you're likely to date a friend's ex or vice versa. In fact, my friend attended Thanksgiving with not only her ex-boyfriend, but also her good friend, who is also his ex. So it can work, but it's tricky territory.
Source: Flickr User BGLewandowski