Re: [jgrapht-users] edges of a graph
Brought to you by:
barak_naveh,
perfecthash
From: John V. S. <js...@gm...> - 2008-12-21 23:47:00
|
Hans-Martin Adorf wrote: > Hi, > > I am a newbie to JGraphT. What I want is to extract all connected > subgraphs from a griven graph. Below is the code that I have used to > familiarize myself with JGraphT. Two questions: > > 1. Why do I not get the desired edge sets from the given graph? Is there a reason you are using org.jgraph.graph.DefaultEdge instead of org.jgrapht.graph.DefaultEdge? That one little "t" makes a lot of difference. > 2. Wouldn't it be nice to include a subgraph extractor as a general > functionality in the JGraphT package? You mean like this one? http://www.jgrapht.org/javadoc/org/jgrapht/graph/Subgraph.html JVS |