- #vdot = v1.to_dot :label => :name, :shape => :shape
- #vdot.should == "#{v.object_id.to_s} {label = \"vertex\", shape = \"house\"};"
+ e.name = 'Edge name'
+ edot = e.to_dot :label => :name
+ edot.should == "#{v1.object_id.to_s} -- #{v2.object_id.to_s} {label = \"#{e.name}\"};"