From: Joris K. <de...@gm...> - 2015-03-05 15:45:57
|
What exactly are you trying to achieve? According to the documentation, the getAllMaximalCliques() returns a collection of cliques in the graph: Collection<Set<V>> So each item in this collection represents a clique. BronKerboschCliqueFinder cliqueFinder=new BronKerboschCliqueFinder(mygraph); for(Set<V> clique : cliqueFinder.getAllMaximalCliques()){ System.out.println("Found a clique with "+clique.size()+" vertices"); } br, Joris On Wed, Mar 4, 2015 at 6:00 PM, fee...@gm... <fee...@gm...> wrote: > HI, > > I’m looking for help regarding Cliques in graphs. I’ve implemented > BronKerboschCliqueFinder but what I actually want to obtain is not the > clique itself... rather its size (number of vertices)…Does anyone know how > to do this?? > > I also have the same question but regarding the connectedSets case. > > Thanks > > Phil > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, > sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for > all > things parallel software development, from weekly thought leadership blogs > to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > jgrapht-users mailing list > jgr...@li... > https://lists.sourceforge.net/lists/listinfo/jgrapht-users > > |