finish graph codes