Minimum Spanning Tree
PortfolioOptimisers.KruskalTree — Type
struct KruskalTree{__T_args, __T_kwargs} <: AbstractTreeTypeGrows the minimum spanning tree by taking the lightest edge that joins two components.
KruskalTree specifies the use of Kruskal's algorithm for constructing a minimum spanning tree from a graph.
Fields
args: Positional arguments for the spanning tree function. Every positional slot those functions declare is a weight channel, soassert_tree_argsrefuses a matrix or a vector here: the weights arrive with the graph.
kwargs: Keyword arguments for the spanning tree function.assert_tree_argsrefusesminimize, which would invert the minimisation the tree branch is defined by.
Constructors
KruskalTree(; args::Tuple = (), kwargs::NamedTuple = (;)) -> KruskalTreeKeywords correspond to the struct's fields.
Validation
- No entry of
argsis anAbstractMatrixor anAbstractVector, andkwargsholds nominimizekey. Each of those reaches a channel that would re-weight or re-orient the graph theNetworkEstimatorbuilt.
Examples
julia> KruskalTree()KruskalTree args ┼ Tuple{}: () kwargs ┴ @NamedTuple{}: NamedTuple()Related
References
- [55] J. B. Kruskal. On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical Society 7, 48–50 (1956).
PortfolioOptimisers.BoruvkaTree — Type
struct BoruvkaTree{__T_args, __T_kwargs} <: AbstractTreeTypeGrows the minimum spanning tree by joining every component to its own lightest neighbour at once.
BoruvkaTree specifies the use of Boruvka's algorithm for constructing a minimum spanning tree from a graph.
Fields
args: Positional arguments for the spanning tree function. Every positional slot those functions declare is a weight channel, soassert_tree_argsrefuses a matrix or a vector here: the weights arrive with the graph.
kwargs: Keyword arguments for the spanning tree function.assert_tree_argsrefusesminimize, which would invert the minimisation the tree branch is defined by.
Constructors
BoruvkaTree(; args::Tuple = (), kwargs::NamedTuple = (;)) -> BoruvkaTreeKeywords correspond to the struct's fields.
Validation
- No entry of
argsis anAbstractMatrixor anAbstractVector, andkwargsholds nominimizekey. Each of those reaches a channel that would re-weight or re-orient the graph theNetworkEstimatorbuilt.
Examples
julia> BoruvkaTree()BoruvkaTree args ┼ Tuple{}: () kwargs ┴ @NamedTuple{}: NamedTuple()Related
References
- [56] O. Borůvka. O jistém problému minimálním. Práce Moravské Přírodovědecké Společnosti 3, 37–58 (1926).
PortfolioOptimisers.PrimTree — Type
struct PrimTree{__T_args, __T_kwargs} <: AbstractTreeTypeGrows the minimum spanning tree outward from a single starting vertex.
PrimTree specifies the use of Prim's algorithm for constructing a minimum spanning tree from a graph.
Fields
args: Positional arguments for the spanning tree function. Every positional slot those functions declare is a weight channel, soassert_tree_argsrefuses a matrix or a vector here: the weights arrive with the graph.
kwargs: Keyword arguments for the spanning tree function.assert_tree_argsrefusesminimize, which would invert the minimisation the tree branch is defined by.
Constructors
PrimTree(; args::Tuple = (), kwargs::NamedTuple = (;)) -> PrimTreeKeywords correspond to the struct's fields.
Validation
- No entry of
argsis anAbstractMatrixor anAbstractVector, andkwargsholds nominimizekey. Each of those reaches a channel that would re-weight or re-orient the graph theNetworkEstimatorbuilt.
Examples
julia> PrimTree()PrimTree args ┼ Tuple{}: () kwargs ┴ @NamedTuple{}: NamedTuple()Related
References
- [57] R. C. Prim. Shortest connection networks and some generalizations. The Bell System Technical Journal 36, 1389–1401 (1957).
References
- [55]
- J. B. Kruskal. On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical Society 7, 48–50 (1956).
- [56]
- O. Borůvka. O jistém problému minimálním. Práce Moravské Přírodovědecké Společnosti 3, 37–58 (1926).
- [57]
- R. C. Prim. Shortest connection networks and some generalizations. The Bell System Technical Journal 36, 1389–1401 (1957).