Adds the given edge to the graph.
Adds the given edge to the graph. If the source and target vertices do not exist in the graph, they will also be added.
the source vertex of the edge
the target vertex of the edge
the edge value
the new graph containing the existing vertices and edges plus the newly added edge
Adds the given list edges to the graph.
Adds the given list edges to the graph.
When adding an edge for a non-existing set of vertices, the edge is considered invalid and ignored.
the data set of edges to be added
a new graph containing the existing edges plus the newly added edges.
Adds the input vertex to the graph.
Adds the input vertex to the graph. If the vertex already exists in the graph, it will not be added again.
the vertex to be added
the new graph containing the existing vertices as well as the one just added
Adds the list of vertices, passed as input, to the graph.
Adds the list of vertices, passed as input, to the graph. If the vertices already exist in the graph, they will not be added once more.
the list of vertices to add
the new graph containing the existing and newly added vertices
Performs Difference on the vertex and edge sets of the input graphs removes common vertices and edges.
Performs Difference on the vertex and edge sets of the input graphs removes common vertices and edges. If a source/target vertex is removed, its corresponding edge will also be removed
the graph to perform difference with
a new graph where the common vertices and edges have been removed
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the edges.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the edges.
the filter function for edges.
the resulting sub-graph.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the edges.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the edges.
the filter function for edges.
the resulting sub-graph.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the vertices.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the vertices.
the filter function for vertices.
the resulting sub-graph.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the vertices.
Apply a filtering function to the graph and return a sub-graph that satisfies the predicates only for the vertices.
the filter function for vertices.
the resulting sub-graph.
Return the degree of all vertices in the graph
Return the degree of all vertices in the graph
A DataSet of Tuple2<vertexId, degree>
The IDs of the edges as DataSet
the edge DataSet.
the edge DataSet as Tuple3.
a DataSet of Triplets, consisting of (srcVertexId, trgVertexId, srcVertexValue, trgVertexValue, edgeValue)
This operation adds all inverse-direction edges to the graph.
This operation adds all inverse-direction edges to the graph.
the undirected graph.
The IDs of the vertices as DataSet
the vertex DataSet.
the vertex DataSet as Tuple2.
Compute an aggregate over the edges of each vertex.
Compute an aggregate over the edges of each vertex. The function applied on the edges has access to the vertex value.
the output type
the function to apply to the neighborhood
the edge direction (in-, out-, all-)
a dataset of a T
Compute an aggregate over the edges of each vertex.
Compute an aggregate over the edges of each vertex. The function applied on the edges has access to the vertex value.
the output type
the function to apply to the neighborhood
the edge direction (in-, out-, all-)
a dataset of a T
Compute an aggregate over the neighbors (edges and vertices) of each vertex.
Compute an aggregate over the neighbors (edges and vertices) of each vertex.
the output type
the function to apply to the neighborhood
the edge direction (in-, out-, all-)
a dataset of a T
Compute an aggregate over the neighbors (edges and vertices) of each vertex.
Compute an aggregate over the neighbors (edges and vertices) of each vertex. The function applied on the neighbors has access to the vertex value.
the output type
the function to apply to the neighborhood
the edge direction (in-, out-, all-)
a dataset of a T
Return the in-degree of all vertices in the graph
Return the in-degree of all vertices in the graph
A DataSet of Tuple2<vertexId, inDegree>
Performs intersect on the edge sets of the input graphs.
Performs intersect on the edge sets of the input graphs. Edges are considered equal, if they have the same source identifier, target identifier and edge value.
The method computes pairs of equal edges from the input graphs. If the same edge occurs
multiple times in the input graphs, there will be multiple edge pairs to be considered. Each
edge instance can only be part of one pair. If the given parameter distinctEdges
is set
to true
, there will be exactly one edge in the output graph representing all pairs of
equal edges. If the parameter is set to false
, both edges of each pair will be in the
output.
Vertices in the output graph will have no vertex values.
the graph to perform intersect with
if set to { @code true}, there will be exactly one edge in the output graph representing all pairs of equal edges, otherwise, for each pair, both edges will be in the output graph
a new graph which contains only common vertices and edges from the input graphs
Joins the edge DataSet with an input DataSet on the composite key of both source and target IDs and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input DataSet on the composite key of both source and target IDs and applies a user-defined transformation on the values of the matched records. The first two fields of the input DataSet are used as join keys.
the type of the third field of the input Tuple3 DataSet.
the DataSet to join with. The first two fields of the Tuple3 are used as the composite join key and the third field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple3 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the edge DataSet with an input DataSet on the composite key of both source and target IDs and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input DataSet on the composite key of both source and target IDs and applies a user-defined transformation on the values of the matched records. The first two fields of the input DataSet are used as join keys.
the type of the third field of the input Tuple3 DataSet.
the DataSet to join with. The first two fields of the Tuple3 are used as the composite join key and the third field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple3 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The source ID of the edges input and the first field of the input DataSet are used as join keys.
the type of the second field of the input Tuple2 DataSet.
the DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The source ID of the edges input and the first field of the input DataSet are used as join keys.
the type of the second field of the input Tuple2 DataSet.
the DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The target ID of the edges input and the first field of the input DataSet are used as join keys.
the type of the second field of the input Tuple2 DataSet.
the DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the edge DataSet with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The target ID of the edges input and the first field of the input DataSet are used as join keys.
the type of the second field of the input Tuple2 DataSet.
the DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current edge value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the edge values have been updated according to the result of the edgeJoinFunction.
Joins the vertex DataSet of this graph with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the vertex DataSet of this graph with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The vertex ID and the first field of the Tuple2 DataSet are used as the join keys.
the type of the second field of the input Tuple2 DataSet.
the Tuple2 DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current vertex value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the vertex values have been updated according to the result of the vertexJoinFunction.
Joins the vertex DataSet of this graph with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records.
Joins the vertex DataSet of this graph with an input Tuple2 DataSet and applies a user-defined transformation on the values of the matched records. The vertex ID and the first field of the Tuple2 DataSet are used as the join keys.
the type of the second field of the input Tuple2 DataSet.
the Tuple2 DataSet to join with. The first field of the Tuple2 is used as the join key and the second field is passed as a parameter to the transformation function.
the transformation function to apply. The first parameter is the current vertex value and the second parameter is the value of the matched Tuple2 from the input DataSet.
a new Graph, where the vertex values have been updated according to the result of the vertexJoinFunction.
Apply a function to the attribute of each edge in the graph.
Apply a function to the attribute of each edge in the graph.
the map function to apply.
a new graph
Apply a function to the attribute of each edge in the graph.
Apply a function to the attribute of each edge in the graph.
the map function to apply.
a new graph
Apply a function to the attribute of each vertex in the graph.
Apply a function to the attribute of each vertex in the graph.
the map function to apply.
a new graph
Apply a function to the attribute of each vertex in the graph.
Apply a function to the attribute of each vertex in the graph.
the map function to apply.
a new graph
a long integer representing the number of edges
a long integer representing the number of vertices
Return the out-degree of all vertices in the graph
Return the out-degree of all vertices in the graph
A DataSet of Tuple2<vertexId, outDegree>
Compute a reduce transformation over the neighbors' vertex values of each vertex.
Compute a reduce transformation over the neighbors' vertex values of each vertex. For each vertex, the transformation consecutively calls a ReduceNeighborsFunction until only a single value for each vertex remains. The ReduceNeighborsFunction combines a pair of neighbor vertex values into one new value of the same type.
the reduce function to apply to the edges of each vertex.
the edge direction (in-, out-, all-)
a Dataset of Tuple2, with one tuple per vertex. The first field of the Tuple2 is the vertex ID and the second field is the aggregate value computed by the provided ReduceNeighborsFunction.
Compute a reduce transformation over the neighbors' vertex values of each vertex.
Compute a reduce transformation over the neighbors' vertex values of each vertex. For each vertex, the transformation consecutively calls a ReduceNeighborsFunction until only a single value for each vertex remains. The ReduceNeighborsFunction combines a pair of neighbor vertex values into one new value of the same type.
the reduce function to apply to the neighbors of each vertex.
the edge direction (in-, out-, all-)
a Dataset of Tuple2, with one tuple per vertex. The first field of the Tuple2 is the vertex ID and the second field is the aggregate value computed by the provided ReduceNeighborsFunction.
Removes all edges that match the given edge from the graph.
Removes all edges that match the given edge from the graph.
the edge to remove
the new graph containing the existing vertices and edges without the removed edges
Removes all the edges that match the edges in the given data set from the graph.
Removes all the edges that match the edges in the given data set from the graph.
the list of edges to be removed
a new graph where the edges have been removed and in which the vertices remained intact
Removes the given vertex and its edges from the graph.
Removes the given vertex and its edges from the graph.
the vertex to remove
the new graph containing the existing vertices and edges without the removed vertex and its edges
Removes the given vertex and its edges from the graph.
Removes the given vertex and its edges from the graph.
list of vertices to remove
the new graph containing the existing vertices and edges without the removed vertex and its edges
Reverse the direction of the edges in the graph
Reverse the direction of the edges in the graph
a new graph with all edges reversed
A GraphAnalytic is similar to a GraphAlgorithm but is terminal and results are retrieved via accumulators.
A GraphAnalytic is similar to a GraphAlgorithm but is terminal and results are retrieved via accumulators. A Flink program has a single point of execution. A GraphAnalytic defers execution to the user to allow composing multiple analytics and algorithms into a single program.
the analytic to run on the Graph
the algorithm to run on the Graph
the result of the graph algorithm
Runs a Gather-Sum-Apply iteration on the graph with configuration options.
Runs a Gather-Sum-Apply iteration on the graph with configuration options.
the intermediate type used between gather, sum and apply
the gather function collects information about adjacent vertices and edges
the sum function aggregates the gathered information
the apply function updates the vertex values with the aggregates
maximum number of iterations to perform
the iteration configuration parameters
the updated Graph after the gather-sum-apply iteration has converged or after maximumNumberOfIterations.
Runs a Gather-Sum-Apply iteration on the graph.
Runs a Gather-Sum-Apply iteration on the graph. No configuration options are provided.
the intermediate type used between gather, sum and apply
the gather function collects information about adjacent vertices and edges
the sum function aggregates the gathered information
the apply function updates the vertex values with the aggregates
maximum number of iterations to perform
the updated Graph after the gather-sum-apply iteration has converged or after maximumNumberOfIterations.
Runs a scatter-gather iteration on the graph with configuration options.
Runs a scatter-gather iteration on the graph with configuration options.
the scatter function
the gather function
maximum number of iterations to perform
the iteration configuration parameters
the updated Graph after the scatter-gather iteration has converged or after maximumNumberOfIterations.
Runs a scatter-gather iteration on the graph.
Runs a scatter-gather iteration on the graph. No configuration options are provided.
the scatter function
the gather function
maximum number of iterations to perform
the updated Graph after the scatter-gather iteration has converged or after maximumNumberOfIterations.
Runs a vertex-centric iteration on the graph with configuration options.
Runs a vertex-centric iteration on the graph with configuration options.
the compute function
the optional message combiner function
maximum number of iterations to perform
the iteration configuration parameters
the updated Graph after the vertex-centric iteration has converged or after maximumNumberOfIterations.
Runs a vertex-centric iteration on the graph.
Runs a vertex-centric iteration on the graph. No configuration options are provided.
the compute function
the optional message combiner function
maximum number of iterations to perform
the updated Graph after the vertex-centric iteration has converged or after maximumNumberOfIterations.
Apply filtering functions to the graph and return a sub-graph that satisfies the predicates for both vertices and edges.
Apply filtering functions to the graph and return a sub-graph that satisfies the predicates for both vertices and edges.
the filter function for vertices.
the filter function for edges.
the resulting sub-graph.
Apply filtering functions to the graph and return a sub-graph that satisfies the predicates for both vertices and edges.
Apply filtering functions to the graph and return a sub-graph that satisfies the predicates for both vertices and edges.
the filter function for vertices.
the filter function for edges.
the resulting sub-graph.
Translate edge values using the given function.
Translate edge values using the given function.
implements conversion from EV to NEW
graph with translated edge values
Translate edge values using the given MapFunction.
Translate edge values using the given MapFunction.
implements conversion from EV to NEW
graph with translated edge values
Translate vertex and edge IDs using the given function.
Translate vertex and edge IDs using the given function.
implements conversion from K to NEW
graph with translated vertex and edge IDs
Translate vertex and edge IDs using the given MapFunction.
Translate vertex and edge IDs using the given MapFunction.
implements conversion from K to NEW
graph with translated vertex and edge IDs
Translate vertex values using the given function.
Translate vertex values using the given function.
implements conversion from VV to NEW
graph with translated vertex values
Translate vertex values using the given MapFunction.
Translate vertex values using the given MapFunction.
implements conversion from VV to NEW
graph with translated vertex values
Performs union on the vertices and edges sets of the input graphs removing duplicate vertices but maintaining duplicate edges.
Performs union on the vertices and edges sets of the input graphs removing duplicate vertices but maintaining duplicate edges.
the graph to perform union with
a new graph
Represents a graph consisting of Edge edges and Vertex vertices.
the key type for vertex and edge identifiers
the value type for vertices
the value type for edges
org.apache.flink.graph.Vertex
org.apache.flink.graph.Edge