ELASTICPATHING/SOURCECODE/UbiComp2014/Elastic_Pathing_Code/lib-NodeWay.rb
def wids_contain(nid)
		#nid is an interger node id, retuns an array of way ids that contain a given node id
		return @way_buff if @way_buff.empty?
		return @way_buff.map{|x| x[1].include?(nid) ? x[0] : nil}.compact
	end
#A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
def wids_contain(nid)
		return @way_buff if @way_buff.empty?
		return @way_buff.map{|x| x[1].include?(nid) ? x[0] : nil}.compact
	end
def wids_contain ( nid ) return @way_buff if @way_buff . empty? return @way_buff . map { | x | x [ 1 ] . include? ( nid ) ? x [ 0 ] : nil } . compact end
A class for modified ways that differ from the map or new ways that may need to be created
A class for modified ways that differ from the map or new ways that may need to be created
#nid is an interger node id, retuns an array of way ids that contain a given node id
nid