add Node type for unweighted graphs