Path-like graphs ordered by the index