added comments to Graph