finish graph lib