edu.uci.ics.jung.graph.filters.impl
Class DropSoloNodesFilter
java.lang.Object
edu.uci.ics.jung.graph.filters.GeneralVertexAcceptFilter
edu.uci.ics.jung.graph.filters.impl.DropSoloNodesFilter
- All Implemented Interfaces:
- Filter
- public class DropSoloNodesFilter
- extends GeneralVertexAcceptFilter
Accepts only nodes that have at least one edge--that is, nodes that
are connected to one other node. This removes isolates, usually in order
to clean up visualizations. This is NOT an EfficientFilter.
Because there
are no settable parameters, this is set as a factory method--to
get a DropSoloNodesFilter, just invoke
Filter f = DropSoloNodesFilter.getInstance();
- Author:
- danyelf
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
acceptVertex
public boolean acceptVertex(Vertex vert)
- Specified by:
acceptVertex
in class GeneralVertexAcceptFilter
getName
public java.lang.String getName()
- Description copied from interface:
Filter
- Gets a name that describes this filter. It is used by the auditing
methods in
GraphAssemblyRecord
- Returns:
- A string that describes the filter.
getInstance
public static Filter getInstance()