This pgr_ksp function is not working, as answered in an earlier question
SELECT seq , id1 , id2 , cost FROM pgr_ksp( 'SELECT gid as id, fnode_ as source, tnode_ as target, length as cost FROM road', 71670, 97745, 2, false) ;
I have tried all these solutions, but nothing works. Also there are no directions indicating possible restrictions that I could find.
pgr_dijkastra is working well with output.
SELECT seq, id1 AS node, id2 AS edge, cost,geom FROM pgr_dijkstra('SELECT gid as id, fnode_ as source, tnode_ as target, length as cost FROM road',71670 , 97745,false, false) JOIN road ON pgr_dijkstra.id2 = road.gid ;