V
- the type of the verticesE
- the type of the edgespublic class VertexOnlyTransferProtocol<V extends Vertex,E extends Edge> extends GraphTransferProtocol<V,E>
GraphTransferProtocol
that only transfers the vertices of a GraphView
to another graph view or the same.DefaultTransferProtocol
GraphTransferProtocol.TransferData
clearExistingGraph, graph, graphView
Constructor and Description |
---|
VertexOnlyTransferProtocol(GraphView<V,E> graphView,
boolean clearExistingGraph)
Creates a new vertex only transfer protocol.
|
VertexOnlyTransferProtocol(GraphView<V,E> graphView,
boolean clearExistingGraph,
boolean onlyPositions)
Creates a new vertex only transfer protocol.
|
Modifier and Type | Method and Description |
---|---|
protected GraphTransferProtocol.TransferData |
getTransferData(E edge)
Gets the transfer data for a given edge.
|
protected GraphTransferProtocol.TransferData |
getTransferData(V vertex)
Gets the transfer data for a given vertex.
|
getGraph, getGraphView, prepare
public VertexOnlyTransferProtocol(GraphView<V,E> graphView, boolean clearExistingGraph) throws java.lang.NullPointerException
graphView
- the graph view its vertices should be transferedclearExistingGraph
- true
if the graph of the view the data is transferred to should be cleared otherwise false
java.lang.NullPointerException
- public VertexOnlyTransferProtocol(GraphView<V,E> graphView, boolean clearExistingGraph, boolean onlyPositions) throws java.lang.NullPointerException
graphView
- the graph view its vertices should be transferedclearExistingGraph
- true
if the graph of the view the data is transferred to should be cleared otherwise false
onlyPositions
- true
if only the vertex positions should be transferred otherwise false
java.lang.NullPointerException
- protected GraphTransferProtocol.TransferData getTransferData(V vertex)
GraphTransferProtocol
getTransferData
in class GraphTransferProtocol<V extends Vertex,E extends Edge>
vertex
- a vertex of the graphnull
if the object should not be transferedprotected GraphTransferProtocol.TransferData getTransferData(E edge)
GraphTransferProtocol
getTransferData
in class GraphTransferProtocol<V extends Vertex,E extends Edge>
edge
- an edge of the graphnull
if the object should not be transfered