Removed maya dependencys from mesh to graph function.