finish graph