added capacity to deal with graphs that have mixed label types: strings and dense vectors