Added code to graph mining