Application of discrete mathematics in urban transportation system analysis