I use jgrapht. I will generate subgraphs.
I think jgrapht-0.8.2/jgrapht-0.8.2/src/org/jgrapht/graph/DirectedSubgraph.java
is useful for this purpose. But I could not find how can I use this class? Can you help me ?
For example: jgrapht-0.8.2/jgrapht-0.8.2/src/org/jgrapht/demo/HelloJGraphT.java
A directed graph constructor is used like that in HelloJGraphT.java class
DirectedGraph<String, DefaultEdge> g =
new DefaultDirectedGraph<String, DefaultEdge>(DefaultEdge.class);