Well if something has no name, it would obviously not make much sense to search for it with a name command? When you only want to connect another entity to the same path, I think the entity path is stored in path_index so its just:

my.path_index = your.path_index;

Is this what you want to do?