Generate mesh from web/network of lines

Lets say I have a closed mesh. It’s a nice orderly mesh- mostly quads but some triangles where needed. If I extract the mesh edges and vertices, is there an easy way to reconstruct the mesh without referencing the original mesh?

Essentially I’ve been given a bunch of mesh edges and vertices, and I don’t want to have to go in a draw a mesh face. I could imagine scripting an algorithm that tests the mesh edge networking for 3-4 segment loops.

But is there an existing solution?

@lawrenceyy, sounds like a task for mesh from lines component in [WeaverBird]
(http://www.giuliopiacentino.com/weaverbird/).

c.

Thank @clement

I totally forgot that that component existed.