Cell-connectivity-guided trajectory inference from single-cell data