{"id":13616146,"url":"https://github.com/dpapathanasiou/simple-graph-go","last_synced_at":"2025-08-21T12:46:40.508Z","repository":{"id":144914259,"uuid":"583979837","full_name":"dpapathanasiou/simple-graph-go","owner":"dpapathanasiou","description":"This is the Go implementation of simple-graph (https://github.com/dpapathanasiou/simple-graph)","archived":false,"fork":false,"pushed_at":"2023-01-02T20:25:16.000Z","size":16,"stargazers_count":16,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T02:12:22.661Z","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/dpapathanasiou.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-12-31T18:37:21.000Z","updated_at":"2024-10-09T00:02:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"73fe1874-9dcb-418c-a353-21d847ea013f","html_url":"https://github.com/dpapathanasiou/simple-graph-go","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/dpapathanasiou%2Fsimple-graph-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpapathanasiou%2Fsimple-graph-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpapathanasiou%2Fsimple-graph-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dpapathanasiou%2Fsimple-graph-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dpapathanasiou","download_url":"https://codeload.github.com/dpapathanasiou/simple-graph-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703204,"owners_count":21148118,"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-08-01T20:01:24.195Z","updated_at":"2025-04-13T11:04:30.012Z","avatar_url":"https://github.com/dpapathanasiou.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# About\n\nThis is the [Go](https://golang.org/) implementation of [simple-graph](https://github.com/dpapathanasiou/simple-graph).\n\n# Usage\n\n## Installation\n\n* [SQLite](https://www.sqlite.org/), version 3.31.0 or higher; get the latest source or precompiled binaries from the [SQLite Download Page](https://www.sqlite.org/download.html) \n* [Go](https://golang.org/doc/install)\n* [go-sqlite3](https://github.com/mattn/go-sqlite3)\n  ```sh\n  go get github.com/mattn/go-sqlite3\n  ```\n* [go-graphviz](https://github.com/goccy/go-graphviz) for visualizations\n  ```sh\n  go get github.com/goccy/go-graphviz\n  ```\n* Optionally, or if the statements in the [originating sql folder (https://github.com/dpapathanasiou/simple-graph/tree/main/sql) change, run the [constants generation script](generate-constants.sh) to rebuild the `constants.go` file\n  ```sh\n  ./generate-constants.sh\n  ```\n\n## Basic Functions\n\nThe [database package](simplegraph/database.go) provides convenience functions for [atomic transactions](https://en.wikipedia.org/wiki/Atomicity_(database_systems)) to add, delete, connect, and search for nodes.\n\nThere are also [visualization functions](simplegraph/visualizer.go) to convert search and traversal outputs into [dot format](https://graphviz.org/pdf/dotguide.pdf) for conversion images.\n\n## Testing\n\nThere are [unit tests](simplegraph/database_test.go) in the `simplegraph` package covering each of the basic functions.\n\nMake sure to use the `json1` tags when running them:\n\n```sh\ncd simplegraph\ngo test -tags json1\n```\n\nIf you have the correct version of SQLite installed, the tests should all pass:\n\n```sh\nPASS\nok  \tgithub.com/dpapathanasiou/simple-graph/go/simplegraph\t0.067s\n```\n\n### TODO\n\n- [ ] Marshall/unmarshal using [json](https://golang.org/pkg/encoding/json/) (or [gabs](https://github.com/Jeffail/gabs), etc.) for injecting \"id\" fields, and merging bodies in update and [upsert](https://en.wiktionary.org/wiki/upsert) instead of the full replacement that happens now","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpapathanasiou%2Fsimple-graph-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdpapathanasiou%2Fsimple-graph-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdpapathanasiou%2Fsimple-graph-go/lists"}