X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=lib%2Fgraph.njae%2Fvertex.rb;fp=lib%2Fgraph.njae%2Fvertex.rb;h=6b34351740c04c0754a5e431f1ea38bd7773a0a0;hb=353a5d54ad4014af126c76617d9b02029a3ee98c;hp=4a75b6df2c628c0cba8a25fead7aff670a1c1563;hpb=c73f1676c10ecc3418eae98d3fb1e306fb86ec4e;p=graph.njae.git diff --git a/lib/graph.njae/vertex.rb b/lib/graph.njae/vertex.rb index 4a75b6d..6b34351 100644 --- a/lib/graph.njae/vertex.rb +++ b/lib/graph.njae/vertex.rb @@ -6,8 +6,8 @@ module GraphNjae # A vertex in a graph. The edge can have arbitrary attributes,treated as # method names. class Vertex < OpenStruct - def initialize - super + def initialize(values = {}) + super(values) self.edges = [] self end