Fix formating on Graph Object

Add "asJSON" method and fixed print method to format graph nicely;