$ToGraph implemented