How do I assemble filtered graphs in Jung Java API -
i'm trying use jung api (v2)
analyse graph in java.
i've applied edgepredicatefilter
, according docs returns unassembled graph.
apparently i'm meant assemble graph, should remove nodes without edges, using call assemble()
method, i'm not sure find it. if try , import edu.uci.ics.jung.filters.unassembledgraph
error saying there's no such class.
how assemble filtered subgraph?
you're looking @ docs v1, not v2: http://jung.sourceforge.net/doc/api/edu/uci/ics/jung/algorithms/filters/edgepredicatefilter.html in v2, edgepredicatefilter.transform() returns graph, plain , simple.
if want remove nodes without edges after edge predicate filter has finished, can separate vertexpredicatefilter pass.
Comments
Post a Comment