daily pastebin goal
88%
SHARE
TWEET

GraphEdge

Ozzypig Feb 26th, 2018 (edited) 42 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. -- GraphEdge class
  2. -- ModuleScript inside Graph ModuleScript
  3. -- by Ozzypig (Twitter: @Ozzypig, ozzypig.com)
  4.  
  5. local GraphEdge = {}
  6. GraphEdge.__index = GraphEdge
  7.  
  8. function GraphEdge.new(nodeOrigin, nodeTarget, value)
  9.     local self = setmetatable({
  10.         origin = nodeOrigin;
  11.         target = nodeTarget;
  12.         value = value or 1;
  13.     }, GraphEdge)
  14.    
  15.     return self
  16. end
  17.  
  18. return GraphEdge
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top