Create the method on the Controller to generate the Graph.

signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>