reindented
This commit is contained in:
parent
d1ccc8a5d0
commit
4ff730c5d3
10
dfs.cc
10
dfs.cc
@ -24,17 +24,17 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
class node {
|
class node {
|
||||||
public:
|
public:
|
||||||
node(std::string const &name) : name_(name) {}
|
node(std::string const &name) : name_(name) {}
|
||||||
void add_child(class node *n)
|
void add_child(class node *n)
|
||||||
{
|
{
|
||||||
children_.push_back(n);
|
children_.push_back(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dfs(std::list<std::string> &res);
|
void dfs(std::list<std::string> &res);
|
||||||
bool visited;
|
bool visited;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string const name_;
|
std::string const name_;
|
||||||
std::list<class node *> children_;
|
std::list<class node *> children_;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user