Is it possible to create a mesh between two different objects that has single edge via Animation Nodes?
Assuming your vertices are in a typical order, you can use the polygon and edge indices from a grid mesh to construct you mesh as follows:



Blend file: