This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Modification of | |
pgr_iscolumnintable(tab text, col text) | |
pgr_iscolumnindexed(tab text, col text) | |
pgr_analyzegraph(edge_tab text, geom_col text, tol double precision) | |
that handles schemas | |
*/ | |
CREATE OR REPLACE FUNCTION pgr_isColumnInTableV2(tab text, col text) | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config.hpp> | |
#include <iostream> | |
#include <boost/graph/adjacency_list.hpp> | |
#include <boost/graph/iteration_macros.hpp> | |
/* | |
To be able to distinguish the edges (source,target) from the (target,source) | |
"cost" column weights are set to 1 for (source,target) | |
"reverse_cost" column weights are set to 2 for (target,source) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UNDIRECTED GRAPH DEMO | |
out_edges(0): | |
out_edges(1): (1,2)=1 (1,2)=2 | |
out_edges(2): (2,1)=1 (2,5)=1 (2,1)=2 (2,3)=2 (2,5)=2 | |
out_edges(3): (3,6)=1 (3,2)=2 (3,4)=2 | |
out_edges(4): (4,9)=1 (4,3)=2 (4,9)=2 | |
out_edges(5): (5,2)=1 (5,8)=1 (5,6)=1 (5,10)=1 (5,2)=2 (5,8)=2 (5,6)=2 (5,10)=2 | |
out_edges(6): (6,3)=1 (6,5)=1 (6,9)=1 (6,11)=1 (6,5)=2 (6,9)=2 | |
out_edges(7): (7,8)=1 (7,8)=2 | |
out_edges(8): (8,7)=1 (8,5)=1 (8,7)=2 (8,5)=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config.hpp> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <fstream> | |
#include "postgres.h" | |
#include <boost/graph/adjacency_list.hpp> | |
/* | |
To be able to distinguish the edges (source,target) from the (target,source) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 | |
1 1 2 1 2 | |
2 2 3 -1 2 | |
3 3 4 -1 2 | |
4 2 5 1 2 | |
5 3 6 1 -1 | |
6 7 8 1 2 | |
7 8 5 1 2 | |
8 5 6 1 2 | |
9 6 9 1 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config.hpp> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <fstream> | |
#include "postgres.h" | |
#include <boost/graph/adjacency_list.hpp> | |
/* | |
To be able to distinguish the edges (source,target) from the (target,source) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UNDIRECTED GRAPH DEMO | |
out_edges(0): | |
out_edges(1): (1,2)=1 (1,2)=2 | |
out_edges(2): (2,1)=1 (2,1)=2 (2,3)=2 (2,5)=1 (2,5)=2 | |
out_edges(3): (3,2)=2 (3,4)=2 (3,6)=1 | |
out_edges(4): (4,3)=2 (4,9)=1 (4,9)=2 | |
out_edges(5): (5,2)=1 (5,2)=2 (5,8)=1 (5,8)=2 (5,6)=1 (5,6)=2 (5,10)=1 (5,10)=2 | |
out_edges(6): (6,3)=1 (6,5)=1 (6,5)=2 (6,9)=1 (6,9)=2 (6,11)=1 | |
out_edges(7): (7,8)=1 (7,8)=2 | |
out_edges(8): (8,7)=1 (8,7)=2 (8,5)=1 (8,5)=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config.hpp> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <fstream> | |
#include "postgres.h" | |
#include <boost/graph/adjacency_list.hpp> | |
#include <boost/graph/dijkstra_shortest_paths.hpp> | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <boost/config.hpp> | |
#include <iostream> | |
#include <stdlib.h> | |
#include <fstream> | |
#include "postgres.h" | |
#include <boost/graph/adjacency_list.hpp> | |
#include <boost/graph/dijkstra_shortest_paths.hpp> | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 | |
1 10 20 1 2 | |
2 20 30 -1 2 | |
3 30 40 -1 2 | |
4 20 50 1 2 | |
5 30 60 1 -1 | |
6 70 80 1 2 | |
7 80 50 1 2 | |
8 50 60 1 2 | |
9 60 90 1 2 |
OlderNewer