Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Develop optimized path sorting algorithm for parcats traces #3059

Copy link
Copy link
Closed
@jonmmease

Description

@jonmmease
Issue body actions

As discussed in #2963, the path sorting approaches in the initial parcats trace are pretty simple.

When sortpaths is 'forward' the paths are sorted by categories in their left-most dimension, then by the second leftmost, and so on, and finally by the right most dimension.

When sortpaths is 'backward' the process is repeated with the dimensions considered from right to left.

These approaches aren't optimized to minimize path crossing, so it would be nice to introduce one or more algorithms for sorting paths so as to minimize crossing paths.

For example:
pathexample

In #2963 @alexcjohnson noted

In the Three dimension all the grey paths come together, yet the B->11 and C->11 paths are interleaved. And the red A->11 goes all the way to the bottom, but it could go to the top of the red bundle, resulting in less self-crossings. We should be able to find an algorithm that untangles these.

In addition, there would also be the option combining path sorting and category ordering (maybe setting both categoryorder and sortpaths to 'auto' or something) so as to further reduce path crossing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.