mse function

Graph structure comparison