R: nexus upgrades graph data type automatically