1/*2* Licensed to the Apache Software Foundation (ASF) under one3* or more contributor license agreements. See the NOTICE file4* distributed with this work for additional information5* regarding copyright ownership. The ASF licenses this file6* to you under the Apache License, Version 2.0 (the7* "License"); you may not use this file except in compliance8* with the License. You may obtain a copy of the License at9*10* http://www.apache.org/licenses/LICENSE-2.011*12* Unless required by applicable law or agreed to in writing, software13* distributed under the License is distributed on an "AS IS" BASIS,14* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.15* See the License for the specific language governing permissions and16* limitations under the License.17*/18 19packageorg.apache.giraph.graph; 20 21importorg.apache.giraph.edge.Edge; 22importorg.apache.hadoop.io.Writable; 23importorg.apache.hadoop.io.WritableComparable; 24 25importjava.util.List; 26 27/**28* Structure to hold all the possible graph mutations that can occur during a29* superstep.30*31* @param <I> Vertex index value32* @param <V> Vertex value33* @param <E> Edge value34*/35 @SuppressWarnings("rawtypes") 36publicinterfaceVertexChanges<IextendsWritableComparable, 37 VextendsWritable, EextendsWritable> { 38/**39* Get the added vertices for this particular vertex index from the previous40* superstep.41*42* @return List of vertices for this vertex index.43*/44 List<Vertex<I, V, E>> getAddedVertexList(); 45 46/**47* Get the number of times this vertex was removed in the previous48* superstep.49*50* @return Count of time this vertex was removed in the previous superstep51*/52intgetRemovedVertexCount(); 53 54/**55* Get the added edges for this particular vertex index from the previous56* superstep57*58* @return List of added edges for this vertex index59*/60 List<Edge<I, E>> getAddedEdgeList(); 61 62/**63* Get the removed edges by their destination vertex index.64*65* @return List of destination edges for removal from this vertex index66*/67 List<I> getRemovedEdgeList(); 68 }