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:
- Acquire a modifiable graph builder to accumulate all the new vertices and edges
- Add vertices and edges to the graph builder
- Create a
PgxGraph
out of the accumulated changes