Cleaned up old unused ToGraph functions