What you ask for is an unsolvable problem, because it depends on the embedding of the graph in the plane (or space). Call 1234Consider the vertices offollowing graphs:
They are isomorphic, and described by the same node-edge incidence matrix, but you want different answers for them.
You need to specify a squareplanar embedding (in this order) and 5 its centeri. Take the graph with edges 12, 23, 34, 41, 15, 53e. In this case, coordinates for the "faces" are 1435 and 1532. Butvertices) for this graph is isomorphic to the one that you get by swapping 2 and 5, and the answer is different in this casework.