lib/class_utils.rb
Deletes the specified edges and unloads referenced vertices from the cache
Deletes the specified edges and unloads referenced vertices from the cache
Deletes the specified edges and unloads referenced vertices from the cache
def delete_edge *edge
    create_command =  -> do
      { type: "cmd",
	  language: 'sql',
	  command: "DELETE EDGE #{edge.map{|x| x.to_orient }.join(',')} "
		      }
      end
    edge.each do |r|
      [r.in, r.out].each{| e | remove_record_from_hash e}
      remove_record_from_hash r
    end
    execute{ create_command[] }
  end
def delete_edge * edge create_command = -> do { type : "cmd" , language : 'sql' , command : "DELETE EDGE #{edge.map{|x| x.to_orient }.join(',')} " } end edge . each do | r | [ r . in , r . out ] . each { | e | remove_record_from_hash e } remove_record_from_hash r end execute { create_command [ ] } end
Deletes the specified edges and unloads referenced vertices from the cache
Deletes the specified edges and unloads referenced vertices from the cache
edge
<not_specific>