class GV::Edge
Public Class Methods
new(graph, name, tail, head)
click to toggle source
# File lib/gv.rb, line 133 def initialize(graph, name, tail, head) @graph = graph @ptr = LibCGraph.agedge(graph.ptr, tail.ptr, head.ptr, name, 1) end
Public Instance Methods
head()
click to toggle source
@return [Node] the head node of the edge
# File lib/gv.rb, line 140 def head Node.new @graph, LibCGraph.aghead(ptr) end
tail()
click to toggle source
@return [Node] the tail node of the edge
# File lib/gv.rb, line 145 def tail Node.new @graph, LibCGraph.agtail(ptr) end