## Module: Split and Merge Segments (
)

### Description:

> This is an experimental module from the Xtra Library: https://xtras.amira-avizo.com.

> This module merges at each branching point the 2 segments with the highest evaluation score and detaches the others segments from this branching point.
> A new node is therefore created for each detached segment as the one new end of this segment.
> The evaluation score is computed from one of the point attributes available.
> Once a point attribute has been selected for the evaluation, the evaluation scoring and ranking methods can be defined.

### Connections:

> Data `[required]`
> The graph to be processed. Supported type is: Spatial Graph.

### Ports:

> Point Attribute
> This port specifies the point attribute to use for the computation of the evaluation score.
> The point attribute selected must be valid: it must be numerical.

> Merge Tactic
> This port specifies the scoring and ranking methods.
> First the ranking operator must be selected:

> - Biggest: the scores are ranked by ascending order (1st has the highest score).
> - Smallest: the scores are ranked by descending order (1st has the lowest score).
> Then the scoring operator must be selected:
> - Mean: the evaluation score is the mean of all the points attribute values over the segment.
> - Median: the evaluation score is the median of all the points attribute values over the segment.
> - Minimum: the evaluation score is the minimum of all the points attribute values over the segment.
> - Maximum: the evaluation score is the maximum of all the points attribute values over the segment.
> - Mass: the evaluation score is the total of all the points attribute values over the segment.