You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3
Original file line number
Diff line number
Diff line change
@@ -12,27 +12,33 @@
12
12
13
13
A PHP implementation of tree data structure.
14
14
15
-
It provides 5 different trees implementations.
15
+
5 different trees implementations:
16
16
***Node**: The base class.
17
17
***N-ary node**: (or K-ary tree) extends the base class and allows you to specify the capacity of a node, the maximum children a node can have.
18
18
***Value node**: extends the N-ary node and allows you to attach a value to the node.
19
19
***KeyValue node**: extends the Value node and allows you to attach a key and a value to the node.
20
20
***Trie node**: extends the KeyValue node, a simple [Trie tree](https://en.wikipedia.org/wiki/Trie).
21
21
22
-
It also provides [4 trees traversals algorithm](https://en.wikipedia.org/wiki/Tree_traversal):
22
+
[4 trees traversals algorithm](https://en.wikipedia.org/wiki/Tree_traversal):
23
23
* In order
24
24
* Post order
25
25
* Pre order
26
26
* Breadth first
27
27
28
-
And it provides exporters and importers:
28
+
Exporters and importers:
29
29
* Graph: Export a tree into a graph using the [graphp/graphp](https://github.com/graphp/graph) library.
30
30
* Text: Export a tree into a simple string.
31
+
* Ascii: Export a tree into an ascii graphic.
32
+
33
+
Modifier:
34
+
* A modifier "Reverse" to reverse a tree.
31
35
32
36
## Documentation
33
37
34
38
API documentation is automatically generated with [APIGen](https://github.com/ApiGen/ApiGen) and available at [this address](https://not-a-number.io/phptree/).
35
39
40
+
Blog post: https://not-a-number.io/2018/phptree-a-fast-tree-implementation
0 commit comments