File: binaryBreadthFirstSearch_pgtap_data.sql

package info (click to toggle)
pgrouting 3.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 16,520 kB
  • sloc: sql: 38,763; cpp: 21,049; ansic: 13,171; perl: 1,781; sh: 804; xml: 182; makefile: 48
file content (32 lines) | stat: -rw-r--r-- 752 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32

DROP TABLE IF EXISTS roadworks CASCADE;
CREATE table roadworks (
    id BIGINT not null primary key,
    source BIGINT,
    target BIGINT,
    road_work FLOAT,
    reverse_road_work FLOAT

);


INSERT INTO roadworks(
  id, source, target, road_work, reverse_road_work) VALUES
  (1,  1,  2,  0,  0),  
  (2,  2,  3,  -1,  1),  
  (3,  3,  4,  -1,  0),  
  (4,  2,  5,  0,  0),  
  (5,  3,  6,  1,  -1),  
  (6,  7,  8,  1,  1),  
  (7,  8,  5,  0,  0),  
  (8,  5,  6,  1,  1),  
  (9,  6,  9,  1,  1),  
  (10,  5,  10,  1,  1),  
  (11,  6,  11,  1,  -1),  
  (12,  10,  11,  0,  -1),  
  (13,  11,  12,  1,  -1),  
  (14,  10,  13,  1,  1),  
  (15,  9,  12,  0,  0),  
  (16,  4,  9,  0,  0),  
  (17,  14,  15,  0,  0),  
  (18,  16,  17,  0,  0);