number connected components / longest path