updated analysis for graph