OQGRAPH Examples
Practical examples demonstrating how to create OQGRAPH tables and perform graph operations like finding shortest paths and leaf nodes.
Creating a Table with origid, destid Only
CREATE TABLE oq_backing (
origid INT UNSIGNED NOT NULL,
destid INT UNSIGNED NOT NULL,
PRIMARY KEY (origid, destid),
KEY (destid)
);INSERT INTO oq_backing(origid, destid)
VALUES (1,2), (2,3), (3,4), (4,5), (2,6), (5,6);CREATE TABLE oq_graph
ENGINE=OQGRAPH
data_table='oq_backing' origid='origid' destid='destid';Creating a Table with Weight
Shortest Path
Possible Destinations
Leaf Nodes
Summary of Implemented Latch Commands
Latch
Alternative
additional where clause fields
Graph operation
Note
See Also
Last updated
Was this helpful?

