Class: GRAPH::Edge

Inherits:
Object
  • Object
show all
Defined in:
lib/sexpir/graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, sink, infos = {}) ⇒ Edge

Returns a new instance of Edge.



110
111
112
113
114
# File 'lib/sexpir/graph.rb', line 110

def initialize source,sink,infos={}
  @infos=infos
  @source=source
  @sink=sink
end

Instance Attribute Details

#infosObject

Returns the value of attribute infos.



109
110
111
# File 'lib/sexpir/graph.rb', line 109

def infos
  @infos
end

#nameObject

Returns the value of attribute name.



109
110
111
# File 'lib/sexpir/graph.rb', line 109

def name
  @name
end

#sinkObject

Returns the value of attribute sink.



109
110
111
# File 'lib/sexpir/graph.rb', line 109

def sink
  @sink
end

#sourceObject

Returns the value of attribute source.



109
110
111
# File 'lib/sexpir/graph.rb', line 109

def source
  @source
end