projectIGraph function

Compute the Projection of a Graph on a Grid