Skip to content

Commit aad4864

Browse files
committed
Fix typos
1 parent ba9fb9b commit aad4864

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

GraphTree/Graph/include/Graph.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ namespace GraphTree {
9595
/** Returns new graph by value that contains spanning tree of the graph that has root at startVertex.
9696
/// WARNING: numeration of vertexes might change.
9797
/// Result graph will be homeomorphic to one of the
98-
/// forest span trees obtained frop getSpanningTree().**/
98+
/// forest span trees obtained from getSpanningTree().**/
9999
Graph<T> getSpanningTree(std::size_t startVertex);
100100

101101
/* FRIEND */
@@ -116,7 +116,7 @@ namespace GraphTree {
116116
void spanningDFS(Graph<T> &resGraph, std::vector<bool> &visited, std::size_t v);
117117

118118
/// Help function that runs DFS from v vertex and adds found spanning
119-
/// tree connections and verticies into resGraph.
119+
/// tree connections and vertexes into resGraph.
120120
void singleSpanningDFS(Graph<T> &resGraph, std::vector<bool> &visited, std::size_t v);
121121

122122
/// Copy vertex data into .this graph from rhs, delete any data that was in .this.

GraphTree/src/main.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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 << "\ng3 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 << "\nspanForestG3 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 << "\nTo 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

Comments
 (0)