GraphUtil created and refactored