matlab code for various statistical procedures on large graphs