The Graph type helps define relational data.
A Graph consists of data points (called vertices) that can be connected to each other.
A Vertex is a data point within the graph. You can store various bits of content in it.
Vertices can connect to each other using edges. A connection has a one-way direction and a label. There can not be more than two edges between two vertices (one for each direction).
An edge is a relation between two vertices. For example, one person can have
a relationship with another person - and you can use a custom edge type to
reveal more about the type of relationship.
Get the destination that an edge points to.
Create a graph with a single vertex in it.
Insert a new vertex into the graph.
Insert a new edge into the graph. If the edge already exists, it is overwritten.
Check whether an edge already exists, and update it according to your needs.
Remove an edge from the graph.
Get an edge between two vertices, if it exists.
Map all vertex labels to a new value. This function cannot change the structure of the graph, but it can use the structure of the graph to remap the labels.
Map all edge labels to a new value. Note that this function is completely blind to the location of each edge.
Fold over the vertices in the graph from oldest to newest added vertex.
Fold over the vertices in the graph from newest to oldest added vertex.
Get the number of outgoing edges for a given vertex.
A graph is a large data type containing various data points that are linked to each other.