store name id of edges in shmem, too