indradb 0.12.1

A graph database server
Documentation
1
2
3
4
5
6
7
8
9
10
local trans = transaction();
local outbound_id = trans:create_vertex("foo");
local inbound_id = trans:create_vertex("bar");
trans:create_edge(EdgeKey.new(outbound_id, "baz", inbound_id));

local count = trans:get_edge_count(outbound_id, "baz", "outbound");
assert(count == 1);

local count = trans:get_edge_count(outbound_id, nil, "outbound");
assert(count == 1);