| 1 | initial version |
Your matrix should be very useful if you use it as an adjacency matrix and then trying to get the number of connected components of the graph. I think that should give what you want... you might have to try to get more information about the connected components.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.