14.6.1 Building Graphs Using GraphBuilder Interface

Using the GraphBuilder interface, you can create graphs programmatically.

The basic work flow for creating graphs from scratch is:

  1. Acquire a modifiable graph builder to accumulate all the new vertices and edges
  2. Add vertices and edges to the graph builder
  3. Create a PgxGraph out of the accumulated changes