public class UnassembledGraph
extends java.lang.Object
The filter process looks like this:
SOURCE GRAPH - [ Filter1 ] - UnassembledGraph - [Filter2] - UnassembledGraph - [Assemble] - Graph
Modifier and Type | Field and Description |
---|---|
protected java.util.Set |
edgeSet |
protected Filter |
filter
Holds a reference to the filter that generated this UnassembledGraph
|
protected java.lang.String |
name |
protected Graph |
originalGraph |
protected UnassembledGraph |
previousGraph |
protected java.util.Set |
vertexSet
Holds a reference to the filter that generated this UnassembledGraph
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
protected java.lang.String name
protected Filter filter
protected java.util.Set vertexSet
protected java.util.Set edgeSet
protected UnassembledGraph previousGraph
protected Graph originalGraph
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)
public java.lang.String getFilterName()
public Graph getOriginalGraph()
public java.util.Set getUntouchedVertices()
public java.util.Set getUntouchedEdges()
public java.lang.String toString()
toString
in class java.lang.Object
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()