link.mst Function (GPL)

Syntax

link.mst(<algebra>)

or

link.mst(<binning function>)

or

link.mst(<statistic function>)

<algebra>. Graph algebra, such as x*y. Refer to Brief Overview of GPL Algebra for an introduction to graph algebra.

<binning function>. A binning function.

<statistic function>. Another statistic function. The result of the embedded statistic is used to calculate link.mst.

Description

Calculates the minimum spanning tree (MST) to connect the values specified by the algebra. This function is typically used with the edge graphic element. The MST connects all values by the shortest distance and never intersects a value twice.

Examples

Figure 1. Example: Creating a minimal spanning tree
ELEMENT: edge(position(link.mst(x*y)))

Statistic Functions

See GPL Functions .