{"id":15680750,"url":"https://github.com/hamirmahal/draw-directed-weighted-graph","last_synced_at":"2026-04-04T22:33:42.112Z","repository":{"id":104457327,"uuid":"600564601","full_name":"hamirmahal/Draw-Directed-Weighted-Graph","owner":"hamirmahal","description":"The code in this repository helped me visualize directed, weighted graphs. ","archived":false,"fork":false,"pushed_at":"2023-02-11T22:31:13.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T10:14:06.109Z","etag":null,"topics":["git","javascript","js","json","node","node-js","nodejs","npm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamirmahal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-11T21:56:44.000Z","updated_at":"2023-07-12T23:48:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"2bca4afa-0fcf-421a-bd2e-406fbea94408","html_url":"https://github.com/hamirmahal/Draw-Directed-Weighted-Graph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hamirmahal/Draw-Directed-Weighted-Graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamirmahal%2FDraw-Directed-Weighted-Graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamirmahal%2FDraw-Directed-Weighted-Graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamirmahal%2FDraw-Directed-Weighted-Graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamirmahal%2FDraw-Directed-Weighted-Graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamirmahal","download_url":"https://codeload.github.com/hamirmahal/Draw-Directed-Weighted-Graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamirmahal%2FDraw-Directed-Weighted-Graph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31416776,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["git","javascript","js","json","node","node-js","nodejs","npm"],"created_at":"2024-10-03T16:44:15.703Z","updated_at":"2026-04-04T22:33:41.755Z","avatar_url":"https://github.com/hamirmahal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dependencies\n\nYou need `dot`, `npm` and probably `node` to use this. I haven't tried using this without `node`.\n\n# Input\n\nThis tool takes a directed, weighted graph represented as a list of triplets as its input, and \"draws\" that graph using `dot`.\n\nThe triplets should have the format [startNode, endNode, edgeWeight].\n\n# Instructions\n\n1. Run `npm start`.\n2. View the contents of `index.html` in your browser to see the graph!\n3. Updating `inputGraph.txt` with another valid graph and saving that file should automatically update `index.html`. Depending on which tool you're using to view `index.html`, you may need to refresh your web browser to see the changes.\n\n# Examples\n\n## Larger graph\n\nContents of `inputGraph.txt`\n\n```\n[[10,14,43],[1,12,62],[4,2,62],[14,10,49],[9,5,29],[13,7,53],[4,12,90],[14,9,38],[11,2,64],[2,13,92],[11,5,42],[10,1,89],[14,0,32],[9,4,81],[3,6,97],[7,13,35],[11,9,63],[5,7,82],[13,6,57],[4,5,100],[2,9,34],[11,13,1],[14,8,1],[12,10,42],[2,4,41],[0,6,55],[5,12,1],[13,3,67],[3,13,36],[3,12,73],[7,5,72],[5,6,100],[7,6,52],[4,7,43],[6,3,67],[3,1,66],[8,12,30],[8,3,42],[9,3,57],[12,6,31],[2,7,10],[14,4,91],[2,3,29],[8,9,29],[2,11,65],[3,8,49],[6,14,22],[4,6,38],[13,0,78],[1,10,97],[8,14,40],[7,9,3],[14,6,4],[4,8,75],[1,6,56]]\n```\n\nGraph\n\n![large graph visualization](images/large_graph.png)\n\n## Smaller graph\n\nContents of `inputGraph.txt`\n\n```\n[[0,1,100],[0,2,100],[0,3,10],[1,2,100],[1,4,10],[2,1,10],[2,3,100],[2,4,100],[3,2,10],[3,4,100]]\n```\n\nGraph\n\n![smaller graph visualization](images/smaller_graph.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamirmahal%2Fdraw-directed-weighted-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamirmahal%2Fdraw-directed-weighted-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamirmahal%2Fdraw-directed-weighted-graph/lists"}