Refactor of graph to be cleaner and use scaling.