Local And Distributed Computation For Large Graphs