public class GraphFilter extends Object
| Modifier and Type | Field and Description |
|---|---|
static GraphFilter |
INSTANCE |
| Constructor and Description |
|---|
GraphFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Vertex vertex,
Shape shape)
Test whether a given vertex matches a given shape.
|
List<Vertex> |
select(Graph source,
Shape shape)
From a particular graph, select the set of vertices that match a given shape.
|
public static final GraphFilter INSTANCE
public boolean matches(Vertex vertex, Shape shape)
vertex - The vertex to be tested.shape - The shape to be matched against the vertexpublic List<Vertex> select(Graph source, Shape shape)
source - The graph from which vertices will be selectedshape - The shape that vertices must match.Copyright © 2019. All rights reserved.