multiple module design using One Wire DS2401 ?

pylon:
Doesn't it have to be always 2 pins?

Sorry. I meant 2 pins for each socket.

DS2401 ICs can be placed in a GND and DATA line and they will be recognized by arduino in the same numerical order, no matter how the order they are attached to each other, using Normal Search.
I can map each set of IC to each device and make them present only when the socket is being used. If I could get the ids in a certain order - based on its position on the data line (for example) - I am almost sure I can track how devices are connecting. I am trying to understand how search algorithm is performed.

Considering the connections diagrams I posted earlier, and supposing I could iterate the search in the order ICs are visually found in data line, I would expected something like this:

//each of these are constant values for mapped ids: 
//deviceA
dAs1 = 22C4FF1A;
dAs2 = AAE3D4A0;
dAs3 = 126EC003;
dAs4 = 44DFF102;
and so on...

case 1 OUTPUT:
->dAs1 -> dAs2 -> dBs2 -> dBs4 -> dCs2

case 2 OUTPUT:
dAs1 -> dAs2 -> dBs2 -> dCs2, dBs4 -> dDs1

case 3 OUTPUT:
dAs1 -> dAs2 -> dBs2 -> dBs4 -> dDs2 -> dDs1 -> dCs4 -> dCs1 -> dAs3 // or
dAs1 -> dAs3 -> dCs1 -> dCs4 -> dDs1 -> dDs2 -> dBs4 -> dBs2 -> dAs2 //

I believe I need to know the structure of the connections more than which socket is being used, I think.