Edge crossing detection

Continuing my mesh questions, is there any way to detect if an edge (what links to verts, not a face) is crossed by another cubes. I suppose I could do this by calculating it from all the cubes positions, but I would ideally prefer a quicker way.

You can use a line cast being made between connecting verts. This allows for info on the other object if needed.

Hope this helps!

-Aj