4 class Vertex < OpenStruct
15 other.edges << e unless self === other
25 vertices = self.edges.map {|e| e.vertices}.flatten
26 vertices_to_me = vertices.select {|v| v == self}
27 other_vertices = vertices.select {|v| v != self}
28 (vertices_to_me[1..-1] || []) + other_vertices