new(name, payload)
public
Initializes a vertex with the given name and payload. @param [String] name see {#name} @param [Object] payload see {#payload}
Show source
def initialize(name, payload)
@name = name.frozen? ? name : name.dup.freeze
@payload = payload
@explicit_requirements = []
@outgoing_edges = []
@incoming_edges = []
end