Export slightly modified to avoid incompatibility with graph edit