Application of graphs and statistics