{"id":13597783,"url":"https://github.com/tusharnankani/binary-tree-visualizer","last_synced_at":"2025-05-07T02:05:28.590Z","repository":{"id":37842562,"uuid":"309734915","full_name":"tusharnankani/binary-tree-visualizer","owner":"tusharnankani","description":"A Binary Tree Visualizer implemented purely in C - A combination of Data Structures \u0026 Computer Graphics.","archived":false,"fork":false,"pushed_at":"2021-03-30T14:49:36.000Z","size":6081,"stargazers_count":13,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-07T02:05:23.200Z","etag":null,"topics":["binary-tree","binary-tree-traversal","binary-tree-visualization","c","computer-graphics","data-structures"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tusharnankani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-03T15:50:52.000Z","updated_at":"2025-01-04T07:39:21.000Z","dependencies_parsed_at":"2022-08-19T07:21:13.352Z","dependency_job_id":null,"html_url":"https://github.com/tusharnankani/binary-tree-visualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2Fbinary-tree-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2Fbinary-tree-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2Fbinary-tree-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tusharnankani%2Fbinary-tree-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tusharnankani","download_url":"https://codeload.github.com/tusharnankani/binary-tree-visualizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252798855,"owners_count":21805887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["binary-tree","binary-tree-traversal","binary-tree-visualization","c","computer-graphics","data-structures"],"created_at":"2024-08-01T17:00:41.304Z","updated_at":"2025-05-07T02:05:28.546Z","avatar_url":"https://github.com/tusharnankani.png","language":"C","readme":"# Binary Tree Visualizer\nA *Binary Tree Visualizer* implemented ***in C.***\n- Combination of **Computer Graphics (CG)** and **Data Structures (DS)** mini projects. \n\n![binary-tree-visualizer-socialify-cover](https://socialify.git.ci/tusharnankani/binary-tree-visualizer/image?description=1\u0026font=Source%20Code%20Pro\u0026forks=1\u0026issues=1\u0026language=1\u0026owner=1\u0026pattern=Circuit%20Board\u0026stargazers=1\u0026theme=Dark)\n\nCode for Traversal - [tree_traversal.c](tree_traversal.c) (Part of a Data Structures Project)\n\nCode for Visualizer - [tree_visualization.c](tree_visualization.c)(Part of a Computer Graphics Project)\n\n## *Demonstration*\nView the complete demonstration [in this LinkedIn Post](https://www.linkedin.com/posts/tusharnankani_binarytreevisualizer-c-visualization-ugcPost-6735769171239419904-YiiR) or [in this video](assets/complete-demo.mp4).\n\n![tree_traversal_gif](assets/tree.gif)\n\n## *Features*\n- Displays a customized tree. (Will be using the `graphics.h` *header file* in C.)\n- Displays Pre-Order, In-Order \u0026 Post-Order traversals.\n\n#### *Functions*\n- `delay()` function.\n- `putpixel()` function.\n- `setcolor()` function.\n- `cleardevice()` function: [Reference](https://www.geeksforgeeks.org/cleardevice-function-c/)\n- `itoa()` function: [Reference](https://fresh2refresh.com/c-programming/c-type-casting/c-itoa-function/)\n- `outtextxy()` function: [Reference](https://www.geeksforgeeks.org/outtextxy-function-c/) \n- `circle()`  function: [Reference](https://www.geeksforgeeks.org/draw-circle-c-graphics/)\n- `floodfill()` function: [Reference](https://www.geeksforgeeks.org/setfillstyle-floodfill-c/)\n  \n#### Traversals\n- In-Order Traversal (LNR: Left-Node-Right)\n- Pre-Order Traversal (NLR: Node-Left-Right)\n- Post-Order Traversal (LRN: Left-Right-Node)\n\n## Setup\nView the complete demonstration [in this video](assets/complete-demo.mp4).\n- Download [Turbo C++](https://turboc.me/download-turbo-c-file/), since we will be using the `graphics.h` header file, which is only supported in TURBO.\n- Clone the repository: `git clone https://github.com/tusharnankani/binary-tree-visualizer.git`\n- Copy the [tree_visualization.c](tree_visualization.c) file.\n- Go to `TURBOC3 \u003e BIN`, and paste the copied file.\n- Start `TURBO C++`, and open the respective file.\n- Compile the file using the command: `Alt + F9`\n- Run the file using the command: `Ctrl + F9`\n\n### *Input*\n- Enter the root node and simultaneously start entering *left and right child for the nodes*.\n- NOTE: For tree input take -1 as NULL.\n\n![](assets/input.png)\n\n- Displays Pre-Order, In-Order \u0026 Post-Order traversals.\n\n![](assets/traversals.png)\n\n- Displays tree.\n\n![](assets/tree1.png)\n\n### Authors\n- Kavya Nair\n- Parth Namdev\n- Tushar Nankani\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2Fbinary-tree-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftusharnankani%2Fbinary-tree-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftusharnankani%2Fbinary-tree-visualizer/lists"}