Graphoon/fd/Edge.lua
Robert Machmer 73b74ca3fe Add Edge and Node classes to init.lua
This way they can be required separately from the Graph class.
2016-01-09 05:03:45 +01:00

16 lines
232 B
Lua

local current = (...):gsub('%.[^%.]+$', '');
local Edge = {};
function Edge.new( id, origin, target )
local self = {};
self.id = id;
self.origin = origin;
self.target = target;
return self;
end
return Edge;