Sha256: 14734dc0475d49f41e5c43e5adc73a18c22bb3719e082b0c75f93f692f5063f2

Contents?: true

Size: 309 Bytes

Versions: 8

Compression:

Stored size: 309 Bytes

Contents

require 'tangle/graph'
require 'tangle/simple/edge'

module Tangle
  module Simple
    #
    # A simple graph, without loops and multiple edges
    class Graph < Tangle::Graph
      Edge = Tangle::Simple::Edge

      def initialize(**kvargs)
        @edges ||= Set[]
        super
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tangle-0.5.1 lib/tangle/simple/graph.rb
tangle-0.5.0 lib/tangle/simple/graph.rb
tangle-0.4.2 lib/tangle/simple/graph.rb
tangle-0.4.0 lib/tangle/simple/graph.rb
tangle-0.3.1 lib/tangle/simple/graph.rb
tangle-0.3.0 lib/tangle/simple/graph.rb
tangle-0.2.1 lib/tangle/simple/graph.rb
tangle-0.2.0 lib/tangle/simple/graph.rb