I have a document containing references to sections (and figures and tables).
I would like to generate a graph (V,E) of the following kind. The vertices (nodes) are the sections and the v1 -> v2 is an edge if there is a reference pointing to section v2 in section v1.
Is there a way to do this?