@@ -55,10 +55,10 @@ void intGraphSample() {
5555 std::cout << " \n ----intGraphSample----" << std::endl;
5656
5757 // / To work with Graph module use GraphTree namespace.
58- // / Then create graph object with 0 verticies that stores int values by:
58+ // / Then create graph object with 0 vertexes that stores int values by:
5959 GraphTree::Graph<int > g1 (0 );
6060
61- // / If you want to crate graph object with n=10 verticies :
61+ // / If you want to crate graph object with n=10 vertexes :
6262 std::size_t n = 10 ;
6363 GraphTree::Graph<int > g2 (n);
6464
@@ -78,12 +78,12 @@ void intGraphSample() {
7878 g1 = g3;
7979 g1 = g1;
8080
81- // / To get number of verticies use:
81+ // / To get number of vertexes use:
8282 g1.size (); // will return 6
8383 g2.size (); // will return 10
8484 g3.size (); // will return 6
8585
86- // / To add edge between two verticies u and v use:
86+ // / To add edge between two vertexes u and v use:
8787 // / WARNING: Graph doesn't support multiedges and loops
8888 v = 1 ;
8989 std::size_t u = 2 ;
@@ -114,7 +114,7 @@ void intGraphSample() {
114114 std::cout << " \n g3 in number form:" << std::endl;
115115 g3.print ();
116116
117- // / To print graph g3 djacency list with data stored in verticies
117+ // / To print graph g3 adjacency list with data stored in vertexes
118118 // / you first need to implement the function that will be called for each vertex
119119 // / and print it in any form you want. As an example we use intPrintHelper() function.
120120 // / After that use:
@@ -127,7 +127,7 @@ void intGraphSample() {
127127 std::cout << " \n spanForestG3 in number form:" << std::endl;
128128 spanForestG3.print ();
129129
130- // / To build random connection graph with n verticies use:
130+ // / To build random connection graph with n vertexes use:
131131 n = 10 ;
132132 GraphTree::Graph<int > rndG = GraphTree::buildRandomGraph<int >(n);
133133
@@ -144,7 +144,7 @@ void vectorGraphSample() {
144144 // / -destructor
145145 // / -assignment operator
146146
147- // / Next sample shows how to use Graph that stores vectors as values in verticies :
147+ // / Next sample shows how to use Graph that stores vectors as values in vertexes :
148148 // innit with vector of vectors:
149149 GraphTree::Graph<std::vector<int > > vecG ({{1 , 3 , 3 , 7 },
150150 {19 , -91 },
@@ -221,7 +221,7 @@ void DateTimeSample() {
221221
222222 // / To store date time difference use DateTimeDelta class
223223 DT::DateTimeDelta toNY = dt3 - dt2;
224- // / Usage of DateTimeDelta clas :
224+ // / Usage of DateTimeDelta class :
225225 std::cout << " \n To NY from 29/09/2018 10:25:56: " ;
226226 toNY.print ();
227227 std::cout << std::endl;
@@ -258,7 +258,7 @@ void DateGraphSample() {
258258 DT::randomTime (startdt.getTime (), enddt.getTime ())));
259259 }
260260
261- // iinit graph with dtVec.
261+ // init graph with dtVec.
262262 GraphTree::Graph<DT::DateTime> gDates (dtVec);
263263 gDates .print (dateTimePrintHelper);
264264
0 commit comments