Characterization of n-Path Graphs and of Graphs Having nth Root