Interface Sink

All Superinterfaces:
AttributeSink, ElementSink
All Known Subinterfaces:
ByteEncoder, FileSink, Graph, Layout, Pipe, ProxyPipe
All Known Implementing Classes:
AbstractGraph, AdjacencyListGraph, AnnotatedSink, AttributePipe, BarnesHutLayout, ByteProxy, DefaultGraph, FileSinkBase, FileSinkBaseFiltered, FileSinkDGS, FileSinkDGSFiltered, FileSinkDOT, FileSinkDynamicGML, FileSinkGEXF, FileSinkGEXF2, FileSinkGML, FileSinkGraphML, FileSinkImages, FileSinkSVG, FileSinkTikZ, FileSinkUnstyledSVG, GEXF, GEXFEdges, GEXFNodes, GraphicGraph, GraphListeners, GraphSpells, LinLog, MultiGraph, NetStreamEncoder, PipeAdapter, PipeBase, RMISink, SingleGraph, SinkAdapter, SpringBox, StepCounter, ThreadProxyPipe, VerboseSink, ViewerPipe

public interface Sink
extends AttributeSink, ElementSink
Sink of graph events.

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 AttributePredicates.

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.

See Also:
Source, Pipe, AttributeSink, ElementSink