class Grumlin::Edge

Attributes

id[R]
inV[R]
inVLabel[R]
label[R]
outV[R]
outVLabel[R]

Public Class Methods

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

Public Instance Methods

==(other) click to toggle source
# File lib/grumlin/edge.rb, line 16
def ==(other)
  self.class == other.class && @label == other.label && @id == other.id
end
inspect() click to toggle source
# File lib/grumlin/edge.rb, line 20
def inspect
  "e[#{@id}][#{@inV}-#{@label}->#{@outV}]"
end
Also aliased as: to_s
to_s()
Alias for: inspect