Changed main.cpp to pick up the graph class functions rather than the friend functions for adding the nodes and links to the graph. Also added the addNodeToGraph and addLinkToGraph functions, required by the new Graph class to be able to operate on the nodes and links. Since the nodes and links have to be part of the graph first before they can be worked on.