Method: CRDT::ORGraph#initialize

Defined in:
lib/crdt/or_graph.rb

#initialize(node_identity = Thread.current.object_id, token_counter = 0) ⇒ ORGraph

Create a new graph



10
11
12
13
14
15
# File 'lib/crdt/or_graph.rb', line 10

def initialize(node_identity = Thread.current.object_id, token_counter = 0)
  @node_identity = node_identity
  @token_counter = token_counter
  @vertices = {}
  @edges = {}
end