lib/model/vertex.rb
def assign vertex: , via:   , attributes: {}

    via.create from: self, to: vertex,  **attributes

		vertex  # return the assigned vertex
  rescue ArgumentError => e
    puts e.message
    nil
  end
Assigns another Vertex via an EdgeClass. If specified, puts attributes on the edge.

Returns the asigned vertex

Wrapper for
  Edge.create in: self, out: a_vertex, attributes: { some_attributes on the edge }

returns the assigned vertex, thus enabling to chain vertices through

    Vertex.assign() via: E , vertex: VertexClass.create()).assign( via: E, ... )
or
	  (1..100).each{|n| vertex = vertex.assign(via: E2, vertex: V2.create(item: n))}
Assigns another Vertex via an EdgeClass. If specified, puts attributes on the edge.
Returns the asigned vertex

Wrapper for
Edge.create in: self, out: a_vertex, attributes: { some_attributes on the edge }

returns the assigned vertex, thus enabling to chain vertices through


Assigns another Vertex via an EdgeClass . If specified puts attributes on the edge . Returns the asigned vertex Wrapper for Edge . create in : self out : a_vertex attributes : { some_attributes on the edge } returns the assigned vertex thus enabling to chain vertices through
def assign vertex: , via:   , attributes: {}
    via.create from: self, to: vertex,  **attributes
		vertex  
  rescue ArgumentError => e
    puts e.message
    nil
  end
def assign vertex : , via : , attributes : { } via . create from : self , to : vertex , ** attributes vertex rescue ArgumentError => e puts e . message nil end
Assigns another Vertex via an EdgeClass.
Assigns another Vertex via an EdgeClass .
# return the assigned vertex
vertex
via
attributes