Finish graph functionality