addLabel and addTextLabel methods added to Graph class