Added static function to calculate Ahnentafel number to Graphic class