Skip to content

Do we need to sort the variables when creating a Node? #2

@sotoseattle

Description

@sotoseattle

If not needed, don't call it!

def initialize(*variables)
    @vars  = Array(variables).flatten.uniq.sort
    @neighbors = []
    @bag = {}
    fail ArgumentError if vars.empty?
  end

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions