Add helper methods in Graph