Skip to content

Instantly share code, notes, and snippets.

@danbri
Created July 26, 2011 15:08
Show Gist options
  • Save danbri/1106970 to your computer and use it in GitHub Desktop.
Save danbri/1106970 to your computer and use it in GitHub Desktop.
# http://en.wikipedia.org/wiki/Laplacian_matrix
WP = [ 0 1 0 0 1 0 ;
1 0 1 0 1 0 ;
0 1 0 1 0 0 ;
0 0 1 0 1 1 ;
1 1 0 1 0 0 ;
0 0 0 1 0 0 ];
L1 = laplacian(WP)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment