Auto-generating a graph model from an existing schema
You can auto-generate a graph model from one or more schemas that are associated with a Db2 database connection.
Before you begin
About this task
A graph is a collection of vertices and edges. Vertices represent domain objects, such as a person or a place, while edges represent relationships between two vertices.
In order to run graph queries against Db2, you need to create a graph model that tells Db2 Graph which tables in your database should be considered as sources for vertices and how the relationship between the tables are defined. Each table used as a source for a vertex by the graph modeler contains a primary key, and the foreign key relationships between these tables are presented as edges by the graph modeler. In other words, any table with a primary key is created as a vertex table while any table with two or more foreign keys is created as an edge table.
The graph modeler allows you to auto-generate graphs, based on primary and foreign key constraints in the database.