A data mining framework for graph based data