Skip to content

dpapathanasiou/simple-graph-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is the Go implementation of simple-graph.

Usage

Installation

Basic Functions

The database package provides convenience functions for atomic transactions to add, delete, connect, and search for nodes.

There are also visualization functions to convert search and traversal outputs into dot format for conversion images.

Testing

There are unit tests in the simplegraph package covering each of the basic functions.

Make sure to use the json1 tags when running them:

cd simplegraph
go test -tags json1

If you have the correct version of SQLite installed, the tests should all pass:

PASS
ok  	github.com/dpapathanasiou/simple-graph/go/simplegraph	0.067s

TODO

  • Marshall/unmarshal using json (or gabs, etc.) for injecting "id" fields, and merging bodies in update and upsert instead of the full replacement that happens now

About

This is the Go implementation of simple-graph (https://github.com/dpapathanasiou/simple-graph)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published