Create connectivity of STL

Hi all,

I am new to VTK. I managed to load an STL file successfully. I would like to convert the stl into a surface mesh vertex->edge->triangle and vice versa. Is there a direct pipeline/filer that can help in generating the connectivity information?. such that, for each edge I can find the owner and neighbor triangles to it.