use labels to indicate node types