File tree Expand file tree Collapse file tree 4 files changed +16
-12
lines changed
Expand file tree Collapse file tree 4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ class BaseNode:
6565 >>> b = Node("b", children=[d])
6666 >>> a = Node("a", children=[b, c])
6767
68- **BaseNode Creation**
68+ **BaseNode Creation**
6969
70- Node can be created by instantiating a `BaseNode` class or by using a *dictionary*.
71- If node is created with dictionary, all keys of dictionary will be stored as class attributes.
70+ Node can be created by instantiating a `BaseNode` class or by using a *dictionary*.
71+ If node is created with dictionary, all keys of dictionary will be stored as class attributes.
7272
7373 >>> from bigtree import Node
7474 >>> root = Node.from_dict({"name": "a", "age": 90})
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ class BinaryNode(node.Node):
3737 >>> b = BinaryNode(2, right=d)
3838 >>> a = BinaryNode(1, children=[b, c])
3939
40- **BinaryNode Creation**
40+ **BinaryNode Creation**
4141
42- Node can be created by instantiating a `BinaryNode` class or by using a *dictionary*.
43- If node is created with dictionary, all keys of dictionary will be stored as class attributes.
42+ Node can be created by instantiating a `BinaryNode` class or by using a *dictionary*.
43+ If node is created with dictionary, all keys of dictionary will be stored as class attributes.
4444
4545 >>> from bigtree import BinaryNode
4646 >>> a = BinaryNode.from_dict({"name": "1"})
Original file line number Diff line number Diff line change @@ -53,10 +53,10 @@ class DAGNode:
5353 >>> b = DAGNode("b", children=[c])
5454 >>> a = DAGNode("a", children=[c])
5555
56- **DAGNode Creation**
56+ **DAGNode Creation**
5757
58- Node can be created by instantiating a `DAGNode` class or by using a *dictionary*.
59- If node is created with dictionary, all keys of dictionary will be stored as class attributes.
58+ Node can be created by instantiating a `DAGNode` class or by using a *dictionary*.
59+ If node is created with dictionary, all keys of dictionary will be stored as class attributes.
6060
6161 >>> from bigtree import DAGNode
6262 >>> a = DAGNode.from_dict({"name": "a", "age": 90})
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ class Node(basenode.BaseNode):
1212 Node is an extension of BaseNode, and is able to extend to any Python class.
1313 Nodes can have attributes if they are initialized from `Node`, *dictionary*, or *pandas DataFrame*.
1414
15+ !!! note
16+ Node names cannot contain separator symbol! This will not throw error, but you might run into issues
17+ when performing certain functions such as export-then-import of tree.
18+
1519 Nodes can be linked to each other with `parent` and `children` setter methods.
1620
1721 Examples:
@@ -39,10 +43,10 @@ class Node(basenode.BaseNode):
3943 >>> b = Node("b", children=[c, d])
4044 >>> a = Node("a", children=[b])
4145
42- **Node Creation**
46+ **Node Creation**
4347
44- Node can be created by instantiating a `Node` class or by using a *dictionary*.
45- If node is created with dictionary, all keys of dictionary will be stored as class attributes.
48+ Node can be created by instantiating a `Node` class or by using a *dictionary*.
49+ If node is created with dictionary, all keys of dictionary will be stored as class attributes.
4650
4751 >>> from bigtree import Node
4852 >>> a = Node.from_dict({"name": "a", "age": 90})
You can’t perform that action at this time.
0 commit comments