finish graph base class