graph algos to graphlab, added hashCode getter