Graph datastructure that automagically manages clusters