Added graph scaling for metric graphs.
Some other minor fixes.