I was able to create a routable grid based network table with gid, source, target, cost columns. I used pgr_create_topology function for this purpose. I use this map to apply the pgrouting algorithms and works perfectly fine.
The worldmap I have used has the boundaries [-180,180] and [-90,90]. So the problem I have is to route from a port in Japan to a port in west coast of US. Since the network table is disconnected at -180 and 180, the pgrouting routes alon the longest route.
My question is how can I create a routable network from pgrouting considering -180 & 180 issue?