Graph utilities: commonly used graph algorithms