moved some methods in hive to functions in graph_uttilities