Added the graph getter method which allows the main thread to change the graph's graphics.