simpleGraphGo

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 2 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL