Begin Network build
This commit is contained in:
14
simple/Node.cc
Normal file
14
simple/Node.cc
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
#include "Node.h"
|
||||
|
||||
namespace bayesnet {
|
||||
Node::Node(std::string name) : name(name) {}
|
||||
|
||||
void Node::addParent(Node* parent)
|
||||
{
|
||||
parents.push_back(parent);
|
||||
parent->children.push_back(this);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user