I
- Vertex idE
- Edge valuepublic interface OutEdges<I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> extends Iterable<Edge<I,E>>, org.apache.hadoop.io.Writable
Modifier and Type | Method and Description |
---|---|
void |
add(Edge<I,E> edge)
Add an edge.
|
void |
initialize()
Initialize the data structure with the default initial capacity.
|
void |
initialize(int capacity)
Initialize the data structure with the specified initial capacity.
|
void |
initialize(Iterable<Edge<I,E>> edges)
Initialize the data structure and set the edges from an iterable.
|
void |
remove(I targetVertexId)
Remove all edges to the given target vertex.
|
int |
size()
Return the number of edges.
|
forEach, iterator, spliterator
void initialize(Iterable<Edge<I,E>> edges)
edges
- Iterable of edgesvoid initialize(int capacity)
capacity
- Initial capacityvoid initialize()
void add(Edge<I,E> edge)
edge
- Edge to addvoid remove(I targetVertexId)
targetVertexId
- Target vertex idint size()
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.