Begin Network build

This commit is contained in:
2023-06-29 22:00:41 +02:00
parent 00ed1e0be1
commit 8e9c3483aa
18 changed files with 874 additions and 0 deletions

14
simple/Node.cc Normal file
View 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);
}
}