Ozzypig

GraphEdge

Feb 26th, 2018
172
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×