Skip to content
Snippets Groups Projects
Commit 6189ce0a authored by Manuel Baum's avatar Manuel Baum
Browse files

projektstruktur geändert

parent 11ef6a65
Branches
Tags
No related merge requests found
import sys
sys.path.append("../lib/networkx-1.7-py2.7.egg")
import networkx as nx
import Node.Node
class BayesNet(object):
graph = nx.DiGraph()
def __init__(self):
print "lol"
def add_node(self, node):
if isinstance(node, Node.Node):
self.graph.add_node(node)
else:
raise Exception("Can only add 'Node' and its subclasses as nodes into the BayesNet")
class Node(object):
name = "SomeNode"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment