public interface Sink extends AttributeSink, ElementSink
An output is something that can receive graph events. The output will send or transform the graph events in another form: a file, a network stream, a visualization, an algorithm, a metric, etc.
The output can filter the stream of attribute events using
AttributePredicate
s.
This listener is in fact the grouping of two specialized listeners. The first
one listens only at structural changes in the graph (node and edge addition
and removal). It is the ElementSink
. The
second one listens only at attributes values changes on elements of the graph
(attribute addition, removal and change of values). It is the
AttributeSink
.
It is possible to listen only at elements or attributes changes with these two interfaces. Registering a graph listener will allow to listen at the both elements and attributes at the same time.
Source
,
Pipe
,
AttributeSink
,
ElementSink
edgeAttributeAdded, edgeAttributeChanged, edgeAttributeRemoved, graphAttributeAdded, graphAttributeChanged, graphAttributeRemoved, nodeAttributeAdded, nodeAttributeChanged, nodeAttributeRemoved
edgeAdded, edgeRemoved, graphCleared, nodeAdded, nodeRemoved, stepBegins