[Lemon-user] Determining components

Peter A. Kolski Peter.Kolski at physik.tu-berlin.de
Thu Feb 14 14:37:49 CET 2013


Dear LEMON users,

I can't get the following code to work. The command countConnectedComponents() works, but not the one when I include a NodeMap:

    ListDigraph                    mGraph;
    ListDigraph::NodeMap<int>      mCompIds(mGraph);
    int nrComponents        =      connectedComponents( undirected( mGraph ), mCompIds );


Anyone done this before? Did I forget something?

Thank you very much

PETER


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20130214/6855bbae/attachment.html>


More information about the Lemon-user mailing list