mirror of
https://github.com/rm-code/Graphoon.git
synced 2024-11-16 18:24:22 +00:00
73b74ca3fe
This way they can be required separately from the Graph class.
16 lines
232 B
Lua
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;
|