Ask Your Question

Revision history [back]

click to hide/show revision 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.