Skip to content

Commit

Permalink
Rework the tree_viz example to only read from file
Browse files Browse the repository at this point in the history
**Description**
 - Slim down the tree viz example so it only reads from file and does
   not generate trees
 - Modify the existing example data so that it has a single delimiter
   with keys and values

**Motivation**
The tree generation part is less useful and I felt like making this
example do only a single thing well was a better use-case.

**Testing Done**
Ran it for a subset of the dictionary file.
  • Loading branch information
declanvk committed Jul 8, 2024
1 parent f883bd4 commit ed05330
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 250 deletions.
14 changes: 7 additions & 7 deletions examples/example-data/medium_tree.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
1,2,3,4,5,6,A
2,4,6,8,10,12,B
1,2,3,4,7,8,C
1,2,3,4,5,9,D
2,4,6,8,10,14,E
2,4,6,8,10,16,F
2,4,6,8,10,18,G
123456|A
24681012|B
123478|C
123459|D
24681014|E
24681016|F
24681018|G
12 changes: 6 additions & 6 deletions examples/example-data/medium_tree_delete_without_merge.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1,2,3,4,5,6,A
2,4,6,8,10,12,B
1,2,3,4,7,8,C
1,2,3,4,5,9,D
2,4,6,8,10,14,E
2,4,6,8,10,18,G
123456|A
24681012|B
123478|C
123459|D
24681014|E
24681018|G
8 changes: 4 additions & 4 deletions examples/example-data/small_tree_with_prefix.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
1,2,3,4,5,6,A
2,4,6,8,10,12,B
1,2,3,4,7,8,C
1,2,3,4,5,9,D
123456|A
24681012|B
123478|C
123459|D
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1,2,3,4,5,6,A
2,4,6,8,10,12,B
1,2,3,4,5,9,D
123456|A
24681012|B
123459|D
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1,2,3,4,5,6,A
1,2,3,4,7,8,C
1,2,3,4,5,9,D
123456|A
123478|C
123459|D
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
1,2,3,4,5,6,A
2,4,6,8,10,12,B
1,2,3,4,7,8,C
123456|A
24681012|B
123478|C
Loading

0 comments on commit ed05330

Please sign in to comment.