Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Edge.lua - github.com/torch/graph.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd99af27882ef7fb54c728302a864ca539459d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
--[[
A Directed Edge class
No methods, just two fields, from and to.
]]--
local Edge = torch.class('graph.Edge')

function Edge:__init(from,to,weight)
   self.from = from
   self.to = to
   self.weight = weight
end