|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.graph.filters.UnassembledGraph
This class represents an unassembled graph. It does not implement Graph. It represents the collection of vertices and edges that were generated by the filter. VERTICES that are members of this DO NOT fulfill the vertex contract, as they claim their graph is the source graph.
The filter process looks like this:
SOURCE GRAPH - [ Filter1 ] - UnassembledGraph - [Filter2] - UnassembledGraph - [Assemble] - Graph
Constructor Summary | |
UnassembledGraph(Filter f,
java.util.Set vertices,
java.util.Set edges,
Graph original)
|
|
UnassembledGraph(Filter f,
java.util.Set vertices,
java.util.Set edges,
UnassembledGraph previous)
|
|
UnassembledGraph(java.lang.String name,
java.util.Set vertices,
java.util.Set edges,
Graph original)
A constructor that uses non-Filters (for example, GraphCluterers) to build themselves. |
Method Summary | |
Graph |
assemble()
|
Graph |
assemble(boolean shouldPreserveRecord)
Constructs a new graph based on the source graph. |
java.lang.String |
getFilterName()
Returns the name of the filter that generated this UnassembledGraph. |
Graph |
getOriginalGraph()
Returns the original graph that was subsetted for this UnsassembledGraph. |
java.util.Set |
getUntouchedEdges()
Returns the set of edges (from getOriginalGraph()) that passed the filter. |
java.util.Set |
getUntouchedVertices()
Returns the set of vertices (from getOriginalGraph()) that passed the filter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UnassembledGraph(Filter f, java.util.Set vertices, java.util.Set edges, Graph original)
public UnassembledGraph(java.lang.String name, java.util.Set vertices, java.util.Set edges, Graph original)
name
- A name to refer to the caller (e.g.
"EdgeBetweenessCluster(3)")vertices
- The set of vertices in this UnassembledGraphedges
- The set of edges in this UnassembledGraphoriginal
- The graph from which this data comespublic UnassembledGraph(Filter f, java.util.Set vertices, java.util.Set edges, UnassembledGraph previous)
Method Detail |
public java.lang.String getFilterName()
public Graph getOriginalGraph()
public java.util.Set getUntouchedVertices()
public java.util.Set getUntouchedEdges()
public java.lang.String toString()
public Graph assemble(boolean shouldPreserveRecord)
Here's the general theory:
Graph.newInstance()
on the original.getUntouchedVertices()
.
Vertices are copied in with
copy(Graph)
.
public Graph assemble()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |