[MRG] subclass more graph classes

ROOT's graph class hierarchy is abysmal.