Looks cool!  Hope you don't mind if I make a comment- you should always have<br><br>  #include "vtkGraphLargestConnectedComponent.h"<br><br>as the first include in your cxx file.  If you don't, it's possible that your header has a compiler error that you won't notice.  For example, the header might reference a class without using a forward declaration 'class vtkDataSet;' but you don't notice the error because your cxx file includes other headers that do have the forward declaration before it includes the header with the error.  Then someone else comes along and tries to include your header and they get the error.<br>
<br>Pat<br><br><div class="gmail_quote">On Fri, May 21, 2010 at 10:49 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I wrote this class:<br>
vtkGraphLargestConnectedComponent<br>
<br>
which takes a graph and uses vtkBoostConnectedComponents to determine<br>
the connected components and then sets up a selection and uses<br>
vtkExtractSelectedGraph to extract the subgraph of interest.<br>
<br>
This is the graph analog of vtkPolyDataConnectivityFilter<br>
with connectivityFilter->SetExtractionModeToLargestRegion();<br>
<br>
Please take a look - I'd imagine this would be a useful thing to add:<br>
<br>
<a href="http://www.rpi.edu/%7Edoriad/VTK_List/vtkGraphLargestConnectedComponent/" target="_blank">http://www.rpi.edu/~doriad/VTK_List/vtkGraphLargestConnectedComponent/</a><br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br>