graphml2prov: using node_id for identifier generation only when necessary