m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-01-06 16:55:23 -0500
committerMarcin Chrzanowski <marcin.j.chrzanowski@gmail.com>2017-01-06 16:55:23 -0500
commitdf2c6a608a5b238e7b2e5265e05e48535e036263 (patch)
tree738e18a6a63389d3e67cdc04655ed93a0e0704cf /src/parse.h
parented0ac6791435c36e8374b218454ebfa7485f0845 (diff)
Refactor
- Remove unnecessary include - Improve whitespace - Remove unnecessary variable declaration - Move function call to more logical place
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.h b/src/parse.h
index 095232a..2265618 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -10,10 +10,8 @@
class Parser {
public:
Parser(std::string filename) : graph_(), input_file_(filename) {
- std::string edge;
read_file_();
add_vertices_();
- graph_.done_with_vertices();
add_edges_();
}
@@ -46,6 +44,8 @@ private:
graph_.add_vertex(edge.first);
graph_.add_vertex(edge.second);
}
+
+ graph_.done_with_vertices();
}
void add_edges_() {