{"id":22181007,"url":"https://github.com/easygithdev/svgavl","last_synced_at":"2025-03-24T19:16:27.931Z","repository":{"id":152648895,"uuid":"492959592","full_name":"EasyGithDev/SvgAvl","owner":"EasyGithDev","description":"Display an Avl tree of interger","archived":false,"fork":false,"pushed_at":"2022-05-24T15:48:20.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T23:30:16.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/EasyGithDev.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-16T18:45:20.000Z","updated_at":"2022-05-16T18:48:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"2f76de3f-731d-48ed-b52f-c4751b837098","html_url":"https://github.com/EasyGithDev/SvgAvl","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/EasyGithDev%2FSvgAvl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyGithDev%2FSvgAvl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyGithDev%2FSvgAvl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EasyGithDev%2FSvgAvl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EasyGithDev","download_url":"https://codeload.github.com/EasyGithDev/SvgAvl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245334914,"owners_count":20598389,"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":[],"created_at":"2024-12-02T09:21:32.792Z","updated_at":"2025-03-24T19:16:27.911Z","avatar_url":"https://github.com/EasyGithDev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SvgAvl\n\nHere is a complete GO program which reads an integer list and display an AVL tree. \n\nBoth the insertion and the drawing routine are recursives. \n\nFinally, the program send the SVG associated with the tree to the browser to display.\n\n## Install\n\nSelect or create a folder :\n\n```sh\ncd myfloder\n```\n\nClone the project into your selected folder :\n\n```sh\ngit clone git@github.com:EasyGithDev/SvgAvl.git avltree\n```\n\nInstall the depencies to work with SVG :\n\n```sh\ncd svgtree\ngo mod init\ngo get github.com/ajstarks/svgo\n```\n\n## Run\n\nYou may execute the program with a short integer list as parameter :\n\n```sh\ngo run main.go 8 5 4 3 1 -1\n```\n\n![alt text](../media/avl.svg?raw=true)\n\n\nIf you want display the node position use the -d option like this : \n\n```sh\ngo run main.go -d=p 8 5 4 3 1 -1\n```\n\n![alt text](../media/avl-p.svg?raw=true)\n\n## Display the result\n\nOpen a web browser and enter the URL :\n\nhttp://localhost:8000/\n\n## Write the result\n\nYou can choose to generate a SGV file to save the result.\n\nYou must change the output like this :\n\n```sh\ngo run main.go -o=stdout 8 5 4 3 1 -1 \u003e avl.svg\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasygithdev%2Fsvgavl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasygithdev%2Fsvgavl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasygithdev%2Fsvgavl/lists"}