Add add_node method to grap class