graph converter is revised to work with string labels other than integer.