Extra Vertex Traits

Imported to namespace by

using NaiveNASlib.Advanced
NaiveNASlib.NamedTraitType
NamedTrait <: DecoratingTrait
NamedTrait(name, base)

Trait which attaches name to a vertex. Calling name(v) on a vertex with this trait returns name.

source
NaiveNASlib.AfterΔSizeTraitType
AfterΔSizeTrait <: DecoratingTrait
AfterΔSizeTrait(strategy::S, base::T)

Calls after_Δnin(strategy, v, Δs, ischanged) and after_Δnout(strategy, v, Δ, ischanged) after a size change for the vertex v which this trait is attached to.

source
NaiveNASlib.namedFunction
named(name)

Return a function t -> NamedTrait(name, t) intended to reduce a bit of the verbosity when using traitdecoration.

Intended to be composable with other similar functions through ∘.

source
NaiveNASlib.loggedFunction
logged(args...;kwargs...)

Return a function t -> AfterΔSizeTrait(logafterΔsize(args...;kwargs...) indended to reduce a bit of the verbosity when using traitdecoration.

Intended to be composable with other similar functions through ∘.

source
NaiveNASlib.validatedFunction
validated(args...;kwargs...)

Return a function t -> AfterΔSizeTrait(validateafterΔsize(args...;kwargs...), t) indended to reduce a bit of the verbosity when using traitdecoration.

Intended to be composable with other similar functions through ∘.

source