Getting independant sub graphs

Jul 5, 2010 at 7:30 AM
Edited Jul 5, 2010 at 7:32 AM

Hi, Let's consider the following graph:



Is there a way from nodeXL's API to get the independant sub graphs?For example:

List<Community> lstGraphs = nodeXl.GetAllSubGraphs(IGraph)   // The list would contain two Community objects, the first pointing to A,B,C and the second pointing to E,F

Do I need to implement my own code on SubGraphCalculator and check each vertex?

Thank you for your time.

Jul 5, 2010 at 4:03 PM

You don't need to implement your own code to do that.  Please see the Microsoft.NodeXL.Algorithms.ConnectedComponentCalculator.GetStronglyConnectedComponents() method in the NodeXLApi.chm help file.  That method will give you what you're looking for.

-- Tony

Jul 8, 2010 at 10:24 AM

Yes that was what I needed. Thank you very much for the help!