Class: Tangle::Simple::Graph

Inherits:
Graph
  • Object
show all
Defined in:
lib/tangle/simple/graph.rb

Overview

A simple graph, without loops and multiple edges

Constant Summary collapse

Edge =
Tangle::Simple::Edge

Instance Attribute Summary

Attributes inherited from Graph

#mixins

Instance Method Summary collapse

Methods inherited from Graph

#add_edge, #add_vertex, #edges, #get_vertex, #subgraph, #vertices

Constructor Details

#initialize(**kvargs) ⇒ Graph

Returns a new instance of Graph.



11
12
13
14
# File 'lib/tangle/simple/graph.rb', line 11

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