DROP TABLE IF EXISTS graph_base;
DROP TABLE IF EXISTS graph;
DROP TABLE IF EXISTS graph2;
Performing OQGraph General test suite for ENGINE=Aria
CREATE TABLE graph_base (
from_id INT UNSIGNED NOT NULL,
to_id INT UNSIGNED NOT NULL,
PRIMARY KEY (from_id,to_id),
INDEX (to_id)
) ENGINE= Aria ;
CREATE TABLE graph ENGINE=OQGRAPH DATA_TABLE='graph_base' ORIGID='from_id', DESTID='to_id';
select * from graph;
latch origid destid weight seq linkid
INSERT INTO graph_base(from_id, to_id) VALUES (1,2), (2,1);
INSERT INTO graph_base(from_id, to_id) VALUES (1,3), (3,1);
INSERT INTO graph_base(from_id, to_id) VALUES (3,4), (4,3);
INSERT INTO graph_base(from_id, to_id) VALUES (5,6), (6,5);
INSERT INTO graph_base(from_id, to_id) VALUES (5,7);
INSERT INTO graph_base(from_id, to_id) VALUES (9,9);
INSERT INTO graph_base(from_id, to_id) VALUES (10,11);
INSERT INTO graph_base(from_id, to_id) VALUES (11,12);
INSERT INTO graph_base(from_id, to_id) VALUES (12,10);
# Return all edges
SELECT * FROM graph;
latch origid destid weight seq linkid
NULL 121 NULL NULL
NULL 211 NULL NULL
NULL 131 NULL NULL
NULL 311 NULL NULL
NULL 341 NULL NULL
NULL 431 NULL NULL
NULL 561 NULL NULL
NULL 651 NULL NULL
NULL 571 NULL NULL
NULL 991 NULL NULL
NULL 10111 NULL NULL
NULL 11121 NULL NULL
NULL 12101 NULL NULL
# Currently count should be 13
SELECT count(*) FROM graph;
count(*) 13
# Return all edges when latch is NULL - this is different to latch=''and same as no where clause
SELECT * FROM graph where latch is NULL;
latch origid destid weight seq linkid
NULL 121 NULL NULL
NULL 211 NULL NULL
NULL 131 NULL NULL
NULL 311 NULL NULL
NULL 341 NULL NULL
NULL 431 NULL NULL
NULL 561 NULL NULL
NULL 651 NULL NULL
NULL 571 NULL NULL
NULL 991 NULL NULL
NULL 10111 NULL NULL
NULL 11121 NULL NULL
NULL 12101 NULL NULL
# Return all vertices, and subsets of vertices
SELECT * FROM graph where latch='';
latch origid destid weight seq linkid
NULL NULL NULL NULL 1
NULL NULL NULL NULL 2
NULL NULL NULL NULL 3
NULL NULL NULL NULL 4
NULL NULL NULL NULL 5
NULL NULL NULL NULL 6
NULL NULL NULL NULL 7
NULL NULL NULL NULL 9
NULL NULL NULL NULL 10
NULL NULL NULL NULL 11
NULL NULL NULL NULL 12
SELECT * FROM graph where latch='0';
latch origid destid weight seq linkid 0 NULL NULL NULL NULL 1 0 NULL NULL NULL NULL 2 0 NULL NULL NULL NULL 3 0 NULL NULL NULL NULL 4 0 NULL NULL NULL NULL 5 0 NULL NULL NULL NULL 6 0 NULL NULL NULL NULL 7 0 NULL NULL NULL NULL 9 0 NULL NULL NULL NULL 10 0 NULL NULL NULL NULL 11 0 NULL NULL NULL NULL 12
# Currently count should be 11
SELECT count(*) FROM graph where latch='';
count(*) 11
SELECT * FROM graph where latch=''and linkid = 2;
latch origid destid weight seq linkid
NULL NULL NULL NULL 2
SELECT * FROM graph where latch=''and (linkid > 2and linkid < 6);
latch origid destid weight seq linkid
NULL NULL NULL NULL 3
NULL NULL NULL NULL 4
NULL NULL NULL NULL 5
SELECT * FROM graph where latch=''and linkid = NULL;
latch origid destid weight seq linkid
SELECT * FROM graph where latch=''and linkid = 666;
latch origid destid weight seq linkid
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 1;
from to 13 12
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 2;
from to 21
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 4;
from to 43
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 9;
from to 99
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 10;
from to 1011
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = NULL;
from to
SELECT origid as `from`, linkid as `to` FROM graph where latch=''and origid = 666;
from to
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 1;
from to 31 21
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 2;
from to 12
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 4;
from to 34
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 9;
from to 99
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 10;
from to 1210
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = NULL;
from to
SELECT linkid as `from`, destid as `to` FROM graph where latch=''and destid = 666;
from to
SELECT * FROM graph where latch='0';
latch origid destid weight seq linkid 0 NULL NULL NULL NULL 1 0 NULL NULL NULL NULL 2 0 NULL NULL NULL NULL 3 0 NULL NULL NULL NULL 4 0 NULL NULL NULL NULL 5 0 NULL NULL NULL NULL 6 0 NULL NULL NULL NULL 7 0 NULL NULL NULL NULL 9 0 NULL NULL NULL NULL 10 0 NULL NULL NULL NULL 11 0 NULL NULL NULL NULL 12
SELECT count(*) FROM graph where latch='0';
count(*) 11
SELECT * FROM graph where latch='0'and linkid = 2;
latch origid destid weight seq linkid 0 NULL NULL NULL NULL 2
SELECT * FROM graph where latch='0'and (linkid > 2and linkid < 6);
latch origid destid weight seq linkid 0 NULL NULL NULL NULL 3 0 NULL NULL NULL NULL 4 0 NULL NULL NULL NULL 5
SELECT origid as `from`, linkid as `to` FROM graph where latch='0'and origid = 1;
from to 13 12
SELECT origid as `from`, linkid as `to` FROM graph where latch='0'and origid = 2;
from to 21
SELECT origid as `from`, linkid as `to` FROM graph where latch='0'and origid = 4;
from to 43
SELECT origid as `from`, linkid as `to` FROM graph where latch='0'and origid = 9;
from to 99
SELECT origid as `from`, linkid as `to` FROM graph where latch='0'and origid = 10;
from to 1011
SELECT linkid as `from`, destid as `to` FROM graph where latch='0'and destid = 1;
from to 31 21
SELECT linkid as `from`, destid as `to` FROM graph where latch='0'and destid = 2;
from to 12
SELECT linkid as `from`, destid as `to` FROM graph where latch='0'and destid = 4;
from to 34
SELECT linkid as `from`, destid as `to` FROM graph where latch='0'and destid = 9;
from to 99
SELECT linkid as `from`, destid as `to` FROM graph where latch='0'and destid = 10;
from to 1210
# Leaves search tests
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 4;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 5;
latch origid destid weight seq linkid
leaves 5 NULL 117
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 6;
latch origid destid weight seq linkid
leaves 6 NULL 217
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 7;
latch origid destid weight seq linkid
leaves 7 NULL 017
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 9;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 10;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 11;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 12;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 4;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 5;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 6;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 7;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 9;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 10;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 11;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 12;
latch origid destid weight seq linkid
INSERT INTO graph_base(from_id, to_id) VALUES (10,13);
INSERT INTO graph_base(from_id, to_id) VALUES (11,14);
INSERT INTO graph_base(from_id, to_id) VALUES (12,15);
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 10;
latch origid destid weight seq linkid
leaves 10 NULL 3315
leaves 10 NULL 2214
leaves 10 NULL 1113
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 11;
latch origid destid weight seq linkid
leaves 11 NULL 3313
leaves 11 NULL 2215
leaves 11 NULL 1114
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 12;
latch origid destid weight seq linkid
leaves 12 NULL 3314
leaves 12 NULL 2213
leaves 12 NULL 1115
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 13;
latch origid destid weight seq linkid
leaves 13 NULL 0113
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 14;
latch origid destid weight seq linkid
leaves 14 NULL 0114
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 15;
latch origid destid weight seq linkid
leaves 15 NULL 0115
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 10;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 11;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 12;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 13;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 14;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 15;
latch origid destid weight seq linkid
DELETE FROM graph_base where from_id=10and to_id=13;
DELETE FROM graph_base where from_id=11and to_id=14;
DELETE FROM graph_base where from_id=12and to_id=15;
INSERT INTO graph_base(from_id, to_id) VALUES (13,10);
INSERT INTO graph_base(from_id, to_id) VALUES (14,11);
INSERT INTO graph_base(from_id, to_id) VALUES (15,12);
INSERT INTO graph_base(from_id, to_id) VALUES (16,1);
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 10;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 11;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 12;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 13;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 14;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 15;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND origid = 16;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 10;
latch origid destid weight seq linkid
leaves NULL 103314
leaves NULL 102215
leaves NULL 101113
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 11;
latch origid destid weight seq linkid
leaves NULL 113315
leaves NULL 112213
leaves NULL 111114
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 12;
latch origid destid weight seq linkid
leaves NULL 123313
leaves NULL 122214
leaves NULL 121115
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 13;
latch origid destid weight seq linkid
leaves NULL 130113
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 14;
latch origid destid weight seq linkid
leaves NULL 140114
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 15;
latch origid destid weight seq linkid
leaves NULL 150115
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 1;
latch origid destid weight seq linkid
leaves NULL 11116
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 2;
latch origid destid weight seq linkid
leaves NULL 22116
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 3;
latch origid destid weight seq linkid
leaves NULL 32116
SELECT * FROM graph WHERE latch = 'leaves'AND destid = 4;
latch origid destid weight seq linkid
leaves NULL 43116
DELETE FROM graph_base where from_id=13and to_id=10;
DELETE FROM graph_base where from_id=14and to_id=11;
DELETE FROM graph_base where from_id=15and to_id=12;
DELETE FROM graph_base where from_id=16and to_id=1;
SELECT * FROM graph WHERE latch='leaves'AND origid=1AND destid=2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='leaves'AND origid=1AND destid=3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='leaves'AND origid=1AND destid=4;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='leaves'AND origid=6AND destid=7;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='leaves'AND origid=10AND destid=11;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='leaves'AND origid=10AND destid=12;
latch origid destid weight seq linkid
# Breadth-first search tests
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 1;
latch origid destid weight seq linkid
breadth_first 1 NULL 244
breadth_first 1 NULL 133
breadth_first 1 NULL 122
breadth_first 1 NULL 011
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 2;
latch origid destid weight seq linkid
breadth_first 2 NULL 344
breadth_first 2 NULL 233
breadth_first 2 NULL 121
breadth_first 2 NULL 012
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 3;
latch origid destid weight seq linkid
breadth_first 3 NULL 242
breadth_first 3 NULL 134
breadth_first 3 NULL 121
breadth_first 3 NULL 013
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 4;
latch origid destid weight seq linkid
breadth_first 4 NULL 342
breadth_first 4 NULL 231
breadth_first 4 NULL 123
breadth_first 4 NULL 014
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 5;
latch origid destid weight seq linkid
breadth_first 5 NULL 137
breadth_first 5 NULL 126
breadth_first 5 NULL 015
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 6;
latch origid destid weight seq linkid
breadth_first 6 NULL 237
breadth_first 6 NULL 125
breadth_first 6 NULL 016
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 7;
latch origid destid weight seq linkid
breadth_first 7 NULL 017
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 9;
latch origid destid weight seq linkid
breadth_first 9 NULL 019
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 10;
latch origid destid weight seq linkid
breadth_first 10 NULL 2312
breadth_first 10 NULL 1211
breadth_first 10 NULL 0110
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 11;
latch origid destid weight seq linkid
breadth_first 11 NULL 2310
breadth_first 11 NULL 1212
breadth_first 11 NULL 0111
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 12;
latch origid destid weight seq linkid
breadth_first 12 NULL 2311
breadth_first 12 NULL 1210
breadth_first 12 NULL 0112
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 1AND weight = 1;
latch origid destid weight seq linkid
breadth_first 1 NULL 133
breadth_first 1 NULL 122
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 2AND weight = 1;
latch origid destid weight seq linkid
breadth_first 2 NULL 121
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 3AND weight = 1;
latch origid destid weight seq linkid
breadth_first 3 NULL 134
breadth_first 3 NULL 121
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 4AND weight = 1;
latch origid destid weight seq linkid
breadth_first 4 NULL 123
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 5AND weight = 1;
latch origid destid weight seq linkid
breadth_first 5 NULL 137
breadth_first 5 NULL 126
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 6AND weight = 1;
latch origid destid weight seq linkid
breadth_first 6 NULL 125
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 7AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 8AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 9AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 10AND weight = 1;
latch origid destid weight seq linkid
breadth_first 10 NULL 1211
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 11AND weight = 1;
latch origid destid weight seq linkid
breadth_first 11 NULL 1212
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 12AND weight = 1;
latch origid destid weight seq linkid
breadth_first 12 NULL 1210
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 1AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 2AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 3AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 4AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 5AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 6AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 7AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 8AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 9AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 10AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 11AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = 'breadth_first'AND origid = 12AND weight = 1;
count(*) 1
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 1AND weight = 2;
latch origid destid weight seq linkid
breadth_first 1 NULL 244
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 2AND weight = 2;
latch origid destid weight seq linkid
breadth_first 2 NULL 233
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 3AND weight = 2;
latch origid destid weight seq linkid
breadth_first 3 NULL 242
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 4AND weight = 2;
latch origid destid weight seq linkid
breadth_first 4 NULL 231
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 5AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 6AND weight = 2;
latch origid destid weight seq linkid
breadth_first 6 NULL 237
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 7AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 8AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 9AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 10AND weight = 2;
latch origid destid weight seq linkid
breadth_first 10 NULL 2312
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 11AND weight = 2;
latch origid destid weight seq linkid
breadth_first 11 NULL 2310
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 12AND weight = 2;
latch origid destid weight seq linkid
breadth_first 12 NULL 2311
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 1AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 2AND weight = 3;
latch origid destid weight seq linkid
breadth_first 2 NULL 344
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 3AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 4AND weight = 3;
latch origid destid weight seq linkid
breadth_first 4 NULL 342
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 5AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 6AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 7AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 8AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 9AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 10AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 11AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 12AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 1AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 1 NULL 244
breadth_first 1 NULL 133
breadth_first 1 NULL 122
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 2AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 2 NULL 233
breadth_first 2 NULL 121
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 3AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 3 NULL 242
breadth_first 3 NULL 134
breadth_first 3 NULL 121
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 4AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 4 NULL 231
breadth_first 4 NULL 123
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 5AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 5 NULL 137
breadth_first 5 NULL 126
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 6AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 6 NULL 237
breadth_first 6 NULL 125
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 7AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 8AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 9AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 10AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 10 NULL 2312
breadth_first 10 NULL 1211
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 11AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 11 NULL 2310
breadth_first 11 NULL 1212
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = 12AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
breadth_first 12 NULL 2311
breadth_first 12 NULL 1210
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 1;
latch origid destid weight seq linkid
breadth_first NULL 1244
breadth_first NULL 1133
breadth_first NULL 1122
breadth_first NULL 1011
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 2;
latch origid destid weight seq linkid
breadth_first NULL 2344
breadth_first NULL 2233
breadth_first NULL 2121
breadth_first NULL 2012
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 3;
latch origid destid weight seq linkid
breadth_first NULL 3242
breadth_first NULL 3134
breadth_first NULL 3121
breadth_first NULL 3013
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 4;
latch origid destid weight seq linkid
breadth_first NULL 4342
breadth_first NULL 4231
breadth_first NULL 4123
breadth_first NULL 4014
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 5;
latch origid destid weight seq linkid
breadth_first NULL 5126
breadth_first NULL 5015
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 6;
latch origid destid weight seq linkid
breadth_first NULL 6125
breadth_first NULL 6016
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 7;
latch origid destid weight seq linkid
breadth_first NULL 7236
breadth_first NULL 7125
breadth_first NULL 7017
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 9;
latch origid destid weight seq linkid
breadth_first NULL 9019
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 10;
latch origid destid weight seq linkid
breadth_first NULL 102311
breadth_first NULL 101212
breadth_first NULL 100110
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 11;
latch origid destid weight seq linkid
breadth_first NULL 112312
breadth_first NULL 111210
breadth_first NULL 110111
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 12;
latch origid destid weight seq linkid
breadth_first NULL 122310
breadth_first NULL 121211
breadth_first NULL 120112
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 1and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 1133
breadth_first NULL 1122
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 2and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 2121
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 3and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 3134
breadth_first NULL 3121
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 4and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 4123
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 5and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 5126
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 6and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 6125
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 7and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 7125
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 8and weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 9and weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 10and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 101212
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 11and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 111210
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 12and weight = 1;
latch origid destid weight seq linkid
breadth_first NULL 121211
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 1and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 1244
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 2and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 2233
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 3and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 3242
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 4and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 4231
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 5and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 6and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 7and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 7236
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 8and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 9and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 10and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 102311
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 11and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 112312
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 12and weight = 2;
latch origid destid weight seq linkid
breadth_first NULL 122310
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 1and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 2and weight = 3;
latch origid destid weight seq linkid
breadth_first NULL 2344
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 3and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 4and weight = 3;
latch origid destid weight seq linkid
breadth_first NULL 4342
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 5and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 6and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 7and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 8and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 9and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 10and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 11and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = 12and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND origid = NULL;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND destid = NULL;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first'AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = 'breadth_first';
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 1;
latch origid destid weight seq linkid 21 NULL 244 21 NULL 133 21 NULL 122 21 NULL 011
SELECT * FROM graph WHERE latch = '2'AND origid = 2;
latch origid destid weight seq linkid 22 NULL 344 22 NULL 233 22 NULL 121 22 NULL 012
SELECT * FROM graph WHERE latch = '2'AND origid = 3;
latch origid destid weight seq linkid 23 NULL 242 23 NULL 134 23 NULL 121 23 NULL 013
SELECT * FROM graph WHERE latch = '2'AND origid = 4;
latch origid destid weight seq linkid 24 NULL 342 24 NULL 231 24 NULL 123 24 NULL 014
SELECT * FROM graph WHERE latch = '2'AND origid = 5;
latch origid destid weight seq linkid 25 NULL 137 25 NULL 126 25 NULL 015
SELECT * FROM graph WHERE latch = '2'AND origid = 6;
latch origid destid weight seq linkid 26 NULL 237 26 NULL 125 26 NULL 016
SELECT * FROM graph WHERE latch = '2'AND origid = 7;
latch origid destid weight seq linkid 27 NULL 017
SELECT * FROM graph WHERE latch = '2'AND origid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 9;
latch origid destid weight seq linkid 29 NULL 019
SELECT * FROM graph WHERE latch = '2'AND origid = 10;
latch origid destid weight seq linkid 210 NULL 2312 210 NULL 1211 210 NULL 0110
SELECT * FROM graph WHERE latch = '2'AND origid = 11;
latch origid destid weight seq linkid 211 NULL 2310 211 NULL 1212 211 NULL 0111
SELECT * FROM graph WHERE latch = '2'AND origid = 12;
latch origid destid weight seq linkid 212 NULL 2311 212 NULL 1210 212 NULL 0112
SELECT * FROM graph WHERE latch = '2'AND origid = 666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 1AND weight = 1;
latch origid destid weight seq linkid 21 NULL 133 21 NULL 122
SELECT * FROM graph WHERE latch = '2'AND origid = 2AND weight = 1;
latch origid destid weight seq linkid 22 NULL 121
SELECT * FROM graph WHERE latch = '2'AND origid = 3AND weight = 1;
latch origid destid weight seq linkid 23 NULL 134 23 NULL 121
SELECT * FROM graph WHERE latch = '2'AND origid = 4AND weight = 1;
latch origid destid weight seq linkid 24 NULL 123
SELECT * FROM graph WHERE latch = '2'AND origid = 5AND weight = 1;
latch origid destid weight seq linkid 25 NULL 137 25 NULL 126
SELECT * FROM graph WHERE latch = '2'AND origid = 6AND weight = 1;
latch origid destid weight seq linkid 26 NULL 125
SELECT * FROM graph WHERE latch = '2'AND origid = 7AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 8AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 9AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 10AND weight = 1;
latch origid destid weight seq linkid 210 NULL 1211
SELECT * FROM graph WHERE latch = '2'AND origid = 11AND weight = 1;
latch origid destid weight seq linkid 211 NULL 1212
SELECT * FROM graph WHERE latch = '2'AND origid = 12AND weight = 1;
latch origid destid weight seq linkid 212 NULL 1210
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 1AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 2AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 3AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 4AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 5AND weight = 1;
count(*) 2
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 6AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 7AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 8AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 9AND weight = 1;
count(*) 0
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 10AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 11AND weight = 1;
count(*) 1
SELECT count(*) FROM graph WHERE latch = '2'AND origid = 12AND weight = 1;
count(*) 1
SELECT * FROM graph WHERE latch = '2'AND origid = 1AND weight = 2;
latch origid destid weight seq linkid 21 NULL 244
SELECT * FROM graph WHERE latch = '2'AND origid = 2AND weight = 2;
latch origid destid weight seq linkid 22 NULL 233
SELECT * FROM graph WHERE latch = '2'AND origid = 3AND weight = 2;
latch origid destid weight seq linkid 23 NULL 242
SELECT * FROM graph WHERE latch = '2'AND origid = 4AND weight = 2;
latch origid destid weight seq linkid 24 NULL 231
SELECT * FROM graph WHERE latch = '2'AND origid = 5AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 6AND weight = 2;
latch origid destid weight seq linkid 26 NULL 237
SELECT * FROM graph WHERE latch = '2'AND origid = 7AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 8AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 9AND weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 10AND weight = 2;
latch origid destid weight seq linkid 210 NULL 2312
SELECT * FROM graph WHERE latch = '2'AND origid = 11AND weight = 2;
latch origid destid weight seq linkid 211 NULL 2310
SELECT * FROM graph WHERE latch = '2'AND origid = 12AND weight = 2;
latch origid destid weight seq linkid 212 NULL 2311
SELECT * FROM graph WHERE latch = '2'AND origid = 1AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 2AND weight = 3;
latch origid destid weight seq linkid 22 NULL 344
SELECT * FROM graph WHERE latch = '2'AND origid = 3AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 4AND weight = 3;
latch origid destid weight seq linkid 24 NULL 342
SELECT * FROM graph WHERE latch = '2'AND origid = 5AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 6AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 7AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 8AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 9AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 10AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 11AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 12AND weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 1AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 21 NULL 244 21 NULL 133 21 NULL 122
SELECT * FROM graph WHERE latch = '2'AND origid = 2AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 22 NULL 233 22 NULL 121
SELECT * FROM graph WHERE latch = '2'AND origid = 3AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 23 NULL 242 23 NULL 134 23 NULL 121
SELECT * FROM graph WHERE latch = '2'AND origid = 4AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 24 NULL 231 24 NULL 123
SELECT * FROM graph WHERE latch = '2'AND origid = 5AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 25 NULL 137 25 NULL 126
SELECT * FROM graph WHERE latch = '2'AND origid = 6AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 26 NULL 237 26 NULL 125
SELECT * FROM graph WHERE latch = '2'AND origid = 7AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 8AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 9AND (weight = 1or weight = 2);
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = 10AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 210 NULL 2312 210 NULL 1211
SELECT * FROM graph WHERE latch = '2'AND origid = 11AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 211 NULL 2310 211 NULL 1212
SELECT * FROM graph WHERE latch = '2'AND origid = 12AND (weight = 1or weight = 2);
latch origid destid weight seq linkid 212 NULL 2311 212 NULL 1210
SELECT * FROM graph WHERE latch = '2'AND destid = 1;
latch origid destid weight seq linkid 2 NULL 1244 2 NULL 1133 2 NULL 1122 2 NULL 1011
SELECT * FROM graph WHERE latch = '2'AND destid = 2;
latch origid destid weight seq linkid 2 NULL 2344 2 NULL 2233 2 NULL 2121 2 NULL 2012
SELECT * FROM graph WHERE latch = '2'AND destid = 3;
latch origid destid weight seq linkid 2 NULL 3242 2 NULL 3134 2 NULL 3121 2 NULL 3013
SELECT * FROM graph WHERE latch = '2'AND destid = 4;
latch origid destid weight seq linkid 2 NULL 4342 2 NULL 4231 2 NULL 4123 2 NULL 4014
SELECT * FROM graph WHERE latch = '2'AND destid = 5;
latch origid destid weight seq linkid 2 NULL 5126 2 NULL 5015
SELECT * FROM graph WHERE latch = '2'AND destid = 6;
latch origid destid weight seq linkid 2 NULL 6125 2 NULL 6016
SELECT * FROM graph WHERE latch = '2'AND destid = 7;
latch origid destid weight seq linkid 2 NULL 7236 2 NULL 7125 2 NULL 7017
SELECT * FROM graph WHERE latch = '2'AND destid = 8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 9;
latch origid destid weight seq linkid 2 NULL 9019
SELECT * FROM graph WHERE latch = '2'AND destid = 10;
latch origid destid weight seq linkid 2 NULL 102311 2 NULL 101212 2 NULL 100110
SELECT * FROM graph WHERE latch = '2'AND destid = 11;
latch origid destid weight seq linkid 2 NULL 112312 2 NULL 111210 2 NULL 110111
SELECT * FROM graph WHERE latch = '2'AND destid = 12;
latch origid destid weight seq linkid 2 NULL 122310 2 NULL 121211 2 NULL 120112
SELECT * FROM graph WHERE latch = '2'AND destid = 1and weight = 1;
latch origid destid weight seq linkid 2 NULL 1133 2 NULL 1122
SELECT * FROM graph WHERE latch = '2'AND destid = 2and weight = 1;
latch origid destid weight seq linkid 2 NULL 2121
SELECT * FROM graph WHERE latch = '2'AND destid = 3and weight = 1;
latch origid destid weight seq linkid 2 NULL 3134 2 NULL 3121
SELECT * FROM graph WHERE latch = '2'AND destid = 4and weight = 1;
latch origid destid weight seq linkid 2 NULL 4123
SELECT * FROM graph WHERE latch = '2'AND destid = 5and weight = 1;
latch origid destid weight seq linkid 2 NULL 5126
SELECT * FROM graph WHERE latch = '2'AND destid = 6and weight = 1;
latch origid destid weight seq linkid 2 NULL 6125
SELECT * FROM graph WHERE latch = '2'AND destid = 7and weight = 1;
latch origid destid weight seq linkid 2 NULL 7125
SELECT * FROM graph WHERE latch = '2'AND destid = 8and weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 9and weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 10and weight = 1;
latch origid destid weight seq linkid 2 NULL 101212
SELECT * FROM graph WHERE latch = '2'AND destid = 11and weight = 1;
latch origid destid weight seq linkid 2 NULL 111210
SELECT * FROM graph WHERE latch = '2'AND destid = 12and weight = 1;
latch origid destid weight seq linkid 2 NULL 121211
SELECT * FROM graph WHERE latch = '2'AND destid = 1and weight = 2;
latch origid destid weight seq linkid 2 NULL 1244
SELECT * FROM graph WHERE latch = '2'AND destid = 2and weight = 2;
latch origid destid weight seq linkid 2 NULL 2233
SELECT * FROM graph WHERE latch = '2'AND destid = 3and weight = 2;
latch origid destid weight seq linkid 2 NULL 3242
SELECT * FROM graph WHERE latch = '2'AND destid = 4and weight = 2;
latch origid destid weight seq linkid 2 NULL 4231
SELECT * FROM graph WHERE latch = '2'AND destid = 5and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 6and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 7and weight = 2;
latch origid destid weight seq linkid 2 NULL 7236
SELECT * FROM graph WHERE latch = '2'AND destid = 8and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 9and weight = 2;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 10and weight = 2;
latch origid destid weight seq linkid 2 NULL 102311
SELECT * FROM graph WHERE latch = '2'AND destid = 11and weight = 2;
latch origid destid weight seq linkid 2 NULL 112312
SELECT * FROM graph WHERE latch = '2'AND destid = 12and weight = 2;
latch origid destid weight seq linkid 2 NULL 122310
SELECT * FROM graph WHERE latch = '2'AND destid = 1and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 2and weight = 3;
latch origid destid weight seq linkid 2 NULL 2344
SELECT * FROM graph WHERE latch = '2'AND destid = 3and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 4and weight = 3;
latch origid destid weight seq linkid 2 NULL 4342
SELECT * FROM graph WHERE latch = '2'AND destid = 5and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 6and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 7and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 8and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 9and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 10and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 11and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = 12and weight = 3;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND origid = NULL;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND destid = NULL;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2'AND weight = 1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch = '2';
latch origid destid weight seq linkid
# Dijkstras algorithm tests
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=1;
latch origid destid weight seq linkid
dijkstras 11 NULL 01
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=2;
latch origid destid weight seq linkid
dijkstras 12 NULL 01
dijkstras 12112
SELECT * FROM graph WHERE latch='dijkstras'AND origid=2AND destid=1;
latch origid destid weight seq linkid
dijkstras 21 NULL 02
dijkstras 21111
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=4;
latch origid destid weight seq linkid
dijkstras 14 NULL 01
dijkstras 14113
dijkstras 14124
SELECT * FROM graph WHERE latch='dijkstras'AND origid=4AND destid=1;
latch origid destid weight seq linkid
dijkstras 41 NULL 04
dijkstras 41113
dijkstras 41121
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=5;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND origid=5AND destid=7;
latch origid destid weight seq linkid
dijkstras 57 NULL 05
dijkstras 57117
SELECT * FROM graph WHERE latch='dijkstras'AND origid=7AND destid=5;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10AND destid=11;
latch origid destid weight seq linkid
dijkstras 1011 NULL 010
dijkstras 10111111
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10AND destid=12;
latch origid destid weight seq linkid
dijkstras 1012 NULL 010
dijkstras 10121111
dijkstras 10121212
SELECT * FROM graph WHERE latch='dijkstras'AND origid=11AND destid=10;
latch origid destid weight seq linkid
dijkstras 1110 NULL 011
dijkstras 11101112
dijkstras 11101210
SELECT * FROM graph WHERE latch='dijkstras'AND origid=11AND destid=12;
latch origid destid weight seq linkid
dijkstras 1112 NULL 011
dijkstras 11121112
SELECT * FROM graph WHERE latch='dijkstras'AND origid=12AND destid=10;
latch origid destid weight seq linkid
dijkstras 1210 NULL 012
dijkstras 12101110
SELECT * FROM graph WHERE latch='dijkstras'AND origid=12AND destid=11;
latch origid destid weight seq linkid
dijkstras 1211 NULL 012
dijkstras 12111110
dijkstras 12111211
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1;
latch origid destid weight seq linkid
dijkstras 1 NULL 244
dijkstras 1 NULL 133
dijkstras 1 NULL 122
dijkstras 1 NULL 011
SELECT * FROM graph WHERE latch='dijkstras'AND origid=2;
latch origid destid weight seq linkid
dijkstras 2 NULL 344
dijkstras 2 NULL 233
dijkstras 2 NULL 121
dijkstras 2 NULL 012
SELECT * FROM graph WHERE latch='dijkstras'AND origid=3;
latch origid destid weight seq linkid
dijkstras 3 NULL 242
dijkstras 3 NULL 134
dijkstras 3 NULL 121
dijkstras 3 NULL 013
SELECT * FROM graph WHERE latch='dijkstras'AND origid=4;
latch origid destid weight seq linkid
dijkstras 4 NULL 342
dijkstras 4 NULL 231
dijkstras 4 NULL 123
dijkstras 4 NULL 014
SELECT * FROM graph WHERE latch='dijkstras'AND origid=5;
latch origid destid weight seq linkid
dijkstras 5 NULL 137
dijkstras 5 NULL 126
dijkstras 5 NULL 015
SELECT * FROM graph WHERE latch='dijkstras'AND origid=6;
latch origid destid weight seq linkid
dijkstras 6 NULL 237
dijkstras 6 NULL 125
dijkstras 6 NULL 016
SELECT * FROM graph WHERE latch='dijkstras'AND origid=7;
latch origid destid weight seq linkid
dijkstras 7 NULL 017
SELECT * FROM graph WHERE latch='dijkstras'AND origid=8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND origid=9;
latch origid destid weight seq linkid
dijkstras 9 NULL 019
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10;
latch origid destid weight seq linkid
dijkstras 10 NULL 2312
dijkstras 10 NULL 1211
dijkstras 10 NULL 0110
SELECT * FROM graph WHERE latch='dijkstras'AND origid=11;
latch origid destid weight seq linkid
dijkstras 11 NULL 2310
dijkstras 11 NULL 1212
dijkstras 11 NULL 0111
SELECT * FROM graph WHERE latch='dijkstras'AND origid=12;
latch origid destid weight seq linkid
dijkstras 12 NULL 2311
dijkstras 12 NULL 1210
dijkstras 12 NULL 0112
SELECT * FROM graph WHERE latch='dijkstras'AND origid=666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND destid=1;
latch origid destid weight seq linkid
dijkstras NULL 1244
dijkstras NULL 1133
dijkstras NULL 1122
dijkstras NULL 1011
SELECT * FROM graph WHERE latch='dijkstras'AND destid=2;
latch origid destid weight seq linkid
dijkstras NULL 2344
dijkstras NULL 2233
dijkstras NULL 2121
dijkstras NULL 2012
SELECT * FROM graph WHERE latch='dijkstras'AND destid=3;
latch origid destid weight seq linkid
dijkstras NULL 3242
dijkstras NULL 3134
dijkstras NULL 3121
dijkstras NULL 3013
SELECT * FROM graph WHERE latch='dijkstras'AND destid=4;
latch origid destid weight seq linkid
dijkstras NULL 4342
dijkstras NULL 4231
dijkstras NULL 4123
dijkstras NULL 4014
SELECT * FROM graph WHERE latch='dijkstras'AND destid=5;
latch origid destid weight seq linkid
dijkstras NULL 5126
dijkstras NULL 5015
SELECT * FROM graph WHERE latch='dijkstras'AND destid=6;
latch origid destid weight seq linkid
dijkstras NULL 6125
dijkstras NULL 6016
SELECT * FROM graph WHERE latch='dijkstras'AND destid=7;
latch origid destid weight seq linkid
dijkstras NULL 7236
dijkstras NULL 7125
dijkstras NULL 7017
SELECT * FROM graph WHERE latch='dijkstras'AND destid=8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='dijkstras'AND destid=9;
latch origid destid weight seq linkid
dijkstras NULL 9019
SELECT * FROM graph WHERE latch='dijkstras'AND destid=10;
latch origid destid weight seq linkid
dijkstras NULL 102311
dijkstras NULL 101212
dijkstras NULL 100110
SELECT * FROM graph WHERE latch='dijkstras'AND destid=11;
latch origid destid weight seq linkid
dijkstras NULL 112312
dijkstras NULL 111210
dijkstras NULL 110111
SELECT * FROM graph WHERE latch='dijkstras'AND destid=12;
latch origid destid weight seq linkid
dijkstras NULL 122310
dijkstras NULL 121211
dijkstras NULL 120112
# legacy string number
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=1;
latch origid destid weight seq linkid 111 NULL 01
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=2;
latch origid destid weight seq linkid 112 NULL 01 112112
SELECT * FROM graph WHERE latch='1'AND origid=2AND destid=1;
latch origid destid weight seq linkid 121 NULL 02 121111
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=4;
latch origid destid weight seq linkid 114 NULL 01 114113 114124
SELECT * FROM graph WHERE latch='1'AND origid=4AND destid=1;
latch origid destid weight seq linkid 141 NULL 04 141113 141121
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=5;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND origid=5AND destid=7;
latch origid destid weight seq linkid 157 NULL 05 157117
SELECT * FROM graph WHERE latch='1'AND origid=7AND destid=5;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND origid=10AND destid=11;
latch origid destid weight seq linkid 11011 NULL 010 110111111
SELECT * FROM graph WHERE latch='1'AND origid=10AND destid=12;
latch origid destid weight seq linkid 11012 NULL 010 110121111 110121212
SELECT * FROM graph WHERE latch='1'AND origid=11AND destid=10;
latch origid destid weight seq linkid 11110 NULL 011 111101112 111101210
SELECT * FROM graph WHERE latch='1'AND origid=11AND destid=12;
latch origid destid weight seq linkid 11112 NULL 011 111121112
SELECT * FROM graph WHERE latch='1'AND origid=12AND destid=10;
latch origid destid weight seq linkid 11210 NULL 012 112101110
SELECT * FROM graph WHERE latch='1'AND origid=12AND destid=11;
latch origid destid weight seq linkid 11211 NULL 012 112111110 112111211
SELECT * FROM graph WHERE latch='1'AND origid=1;
latch origid destid weight seq linkid 11 NULL 244 11 NULL 133 11 NULL 122 11 NULL 011
SELECT * FROM graph WHERE latch='1'AND origid=2;
latch origid destid weight seq linkid 12 NULL 344 12 NULL 233 12 NULL 121 12 NULL 012
SELECT * FROM graph WHERE latch='1'AND origid=3;
latch origid destid weight seq linkid 13 NULL 242 13 NULL 134 13 NULL 121 13 NULL 013
SELECT * FROM graph WHERE latch='1'AND origid=4;
latch origid destid weight seq linkid 14 NULL 342 14 NULL 231 14 NULL 123 14 NULL 014
SELECT * FROM graph WHERE latch='1'AND origid=5;
latch origid destid weight seq linkid 15 NULL 137 15 NULL 126 15 NULL 015
SELECT * FROM graph WHERE latch='1'AND origid=6;
latch origid destid weight seq linkid 16 NULL 237 16 NULL 125 16 NULL 016
SELECT * FROM graph WHERE latch='1'AND origid=7;
latch origid destid weight seq linkid 17 NULL 017
SELECT * FROM graph WHERE latch='1'AND origid=8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND origid=9;
latch origid destid weight seq linkid 19 NULL 019
SELECT * FROM graph WHERE latch='1'AND origid=10;
latch origid destid weight seq linkid 110 NULL 2312 110 NULL 1211 110 NULL 0110
SELECT * FROM graph WHERE latch='1'AND origid=11;
latch origid destid weight seq linkid 111 NULL 2310 111 NULL 1212 111 NULL 0111
SELECT * FROM graph WHERE latch='1'AND origid=12;
latch origid destid weight seq linkid 112 NULL 2311 112 NULL 1210 112 NULL 0112
SELECT * FROM graph WHERE latch='1'AND origid=666;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND destid=1;
latch origid destid weight seq linkid 1 NULL 1244 1 NULL 1133 1 NULL 1122 1 NULL 1011
SELECT * FROM graph WHERE latch='1'AND destid=2;
latch origid destid weight seq linkid 1 NULL 2344 1 NULL 2233 1 NULL 2121 1 NULL 2012
SELECT * FROM graph WHERE latch='1'AND destid=3;
latch origid destid weight seq linkid 1 NULL 3242 1 NULL 3134 1 NULL 3121 1 NULL 3013
SELECT * FROM graph WHERE latch='1'AND destid=4;
latch origid destid weight seq linkid 1 NULL 4342 1 NULL 4231 1 NULL 4123 1 NULL 4014
SELECT * FROM graph WHERE latch='1'AND destid=5;
latch origid destid weight seq linkid 1 NULL 5126 1 NULL 5015
SELECT * FROM graph WHERE latch='1'AND destid=6;
latch origid destid weight seq linkid 1 NULL 6125 1 NULL 6016
SELECT * FROM graph WHERE latch='1'AND destid=7;
latch origid destid weight seq linkid 1 NULL 7236 1 NULL 7125 1 NULL 7017
SELECT * FROM graph WHERE latch='1'AND destid=8;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND destid=9;
latch origid destid weight seq linkid 1 NULL 9019
SELECT * FROM graph WHERE latch='1'AND destid=10;
latch origid destid weight seq linkid 1 NULL 102311 1 NULL 101212 1 NULL 100110
SELECT * FROM graph WHERE latch='1'AND destid=11;
latch origid destid weight seq linkid 1 NULL 112312 1 NULL 111210 1 NULL 110111
SELECT * FROM graph WHERE latch='1'AND destid=12;
latch origid destid weight seq linkid 1 NULL 122310 1 NULL 121211 1 NULL 120112
INSERT INTO graph_base(from_id, to_id) VALUES (11,13);
INSERT INTO graph_base(from_id, to_id) VALUES (10,14);
INSERT INTO graph_base(from_id, to_id) VALUES (14,13);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10AND destid=13;
latch origid destid weight seq linkid
dijkstras 1013 NULL 010
dijkstras 10131111
dijkstras 10131213
DELETE FROM graph_base where from_id=10and to_id=11;
INSERT INTO graph_base(from_id, to_id) VALUES (10,15);
INSERT INTO graph_base(from_id, to_id) VALUES (15,13);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10AND destid=13;
latch origid destid weight seq linkid
dijkstras 1013 NULL 010
dijkstras 10131114
dijkstras 10131213
INSERT INTO graph_base(from_id, to_id) VALUES (10,11);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=10AND destid=13;
latch origid destid weight seq linkid
dijkstras 1013 NULL 010
dijkstras 10131111
dijkstras 10131213
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1;
latch origid destid weight seq linkid
dijkstras 1 NULL 244
dijkstras 1 NULL 133
dijkstras 1 NULL 122
dijkstras 1 NULL 011
INSERT INTO graph_base(from_id, to_id) VALUES (21,22);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=21;
latch origid destid weight seq linkid
dijkstras 21 NULL 1222
dijkstras 21 NULL 0121
SELECT * FROM graph WHERE latch='dijkstras'AND origid=22;
latch origid destid weight seq linkid
dijkstras 22 NULL 0122
INSERT INTO graph_base(from_id, to_id) VALUES (4,17);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1;
latch origid destid weight seq linkid
dijkstras 1 NULL 3517
dijkstras 1 NULL 244
dijkstras 1 NULL 133
dijkstras 1 NULL 122
dijkstras 1 NULL 011
INSERT INTO graph_base(from_id, to_id) VALUES (4,16);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1;
latch origid destid weight seq linkid
dijkstras 1 NULL 3617
dijkstras 1 NULL 3516
dijkstras 1 NULL 244
dijkstras 1 NULL 133
dijkstras 1 NULL 122
dijkstras 1 NULL 011
INSERT INTO graph_base(from_id, to_id) VALUES (17,18);
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1;
latch origid destid weight seq linkid
dijkstras 1 NULL 4718
dijkstras 1 NULL 3617
dijkstras 1 NULL 3516
dijkstras 1 NULL 244
dijkstras 1 NULL 133
dijkstras 1 NULL 122
dijkstras 1 NULL 011
SELECT * FROM graph WHERE latch='dijkstras'AND destid=1;
latch origid destid weight seq linkid
dijkstras NULL 1244
dijkstras NULL 1133
dijkstras NULL 1122
dijkstras NULL 1011
# Now we add a connection from 4->6
INSERT INTO graph_base (from_id,to_id) VALUES (4,6);
# And delete all references to node 5
DELETE FROM graph_base WHERE from_id=5;
DELETE FROM graph_base WHERE from_id=3AND to_id=5;
# which means there is a path in one direction only 1>3>4>6
SELECT * FROM graph WHERE latch='dijkstras'AND origid=1AND destid=6;
latch origid destid weight seq linkid
dijkstras 16 NULL 01
dijkstras 16113
dijkstras 16124
dijkstras 16136
# but not6>4>3>1 (so no result)
SELECT * FROM graph WHERE latch='dijkstras'AND origid=6AND destid=1;
latch origid destid weight seq linkid
SELECT * FROM graph WHERE latch='1'AND origid=1AND destid=6;
latch origid destid weight seq linkid 116 NULL 01 116113 116124 116136
SELECT * FROM graph WHERE latch='1'AND origid=6AND destid=1;
latch origid destid weight seq linkid
DELETE FROM graph_base;
FLUSH TABLES;
TRUNCATE TABLE graph_base;
DROP TABLE graph_base;
DROP TABLE graph;
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.34Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-10-08)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.