function [ gidout ] = matlabGid_to_routGid ( gidin , max_clm_idx )

[gx,gy] = matlabGid_to_matlabGxGy ( gidin , max_clm_idx ) ;

gx = gx - 1 ;
gy = gy - 1 ;

gidout = routGxGy_to_routGid ( gx, gy, max_clm_idx ) ;