Class: Tangle::Simple::Graph
Overview
A simple graph, without loops and multiple edges
Constant Summary collapse
Instance Attribute Summary
Attributes inherited from Graph
Instance Method Summary collapse
-
#initialize(**kvargs) ⇒ Graph
constructor
A new instance of Graph.
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 |