adjacent_segments.py
# ───── dentro del for gid in (seg_A, seg_B): … ─────
if getattr(obj, "ObjectType", "") == "SUBEQUIPMENT":
print(f" → BOX adyacente detectada ({gid})")
# ► marcar el vecino como BOX ← NUEVA ÚNICA LÍNEA
if gid == seg_A: seg_A = "BOX"
else...