class Grumlin::Vertex

Attributes

id[R]
label[R]

Public Class Methods

new(label:, id:) click to toggle source
# File lib/grumlin/vertex.rb, line 7
def initialize(label:, id:)
  @label = label
  @id = Typing.cast(id)
end

Public Instance Methods

==(other) click to toggle source
# File lib/grumlin/vertex.rb, line 12
def ==(other)
  self.class == other.class && @label == other.label && @id == other.id
end
inspect() click to toggle source
# File lib/grumlin/vertex.rb, line 16
def inspect
  "v[#{@id}]"
end
Also aliased as: to_s
to_s()
Alias for: inspect