stefaj / gcms

MIT License
0 stars 0 forks source link

Normalize Graph coordinates #12

Open Baggins800 opened 8 years ago

Baggins800 commented 8 years ago

A function normalizing the graph coordinates would be a nice feature, e.g. mapping the graph with bounding box vertices v1(5000, 5000) and v2(-5000, -5000), to v1'(1, 1) and v2'(-1,-1).

bounding box vertices are the closest vertices to the origin, able to contain all the vertices of the graph when a box is created from v1 and v2.