convert to edge/nodedata