X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=lib%2Fgraph%2Fgraph.rb~;fp=lib%2Fgraph%2Fgraph.rb~;h=0000000000000000000000000000000000000000;hb=d70d060196f0a62cbd3f5906e93cc1b2b31bc319;hp=c9d83b16c6d1ea152a36a77caaf38d7318be7ffa;hpb=0b3df692a2a00199692d72ede064821bc9bf5935;p=graph.njae.git diff --git a/lib/graph/graph.rb~ b/lib/graph/graph.rb~ deleted file mode 100644 index c9d83b1..0000000 --- a/lib/graph/graph.rb~ +++ /dev/null @@ -1,21 +0,0 @@ -require 'ostruct' - -module Graph - class Graph < OpenStruct - def initialize - super - self.edges = Array.new - self.vertices = Array.new - self - end - - def <<(other) - if other.class == Vertex - self.vertices << other - elsif - self.edges << other - end - self - end - end -end