Large-scale Graph Analysis: System Algorithm and Optimization