The input to a SQL-GR function includes:
- Normally two tables:
- A vertex table, in which each row represents a vertex in the graph.
- An edges table, in which each row represents an edge.
You can also provide dimension tables that contain additional information that can help in the graph processing.
- Arguments
Arguments are usually information that customize this particular call based on the problem you are trying to solve. For example, if you are trying to find a train route from San Diego to Montreal, your arguments would indicate that the starting point (vertex) is San Diego and the end point is Montreal.
- Information about cogroups (more or less equivalent to the groups formed by doing a join-all the rows that have the same key are in the same cogroup).