Why Path Mapper as Fip Matrix doesn't mantain null indices?

Hello everyone!

I’m learning to use the path mapper component to perform a flip matrix operation on a tree that has branches that differ in more than a single locus.

The issue is the following:
When using flip matrix: if the number of indices differ from one branch to another, after the operation is completed null “placeholders” are added to the new branch.

When performing the same operation with the Path Mapper, null “placeholders” are not generated.


So, why is this and how could I still create those nulls indices?
Obviously, I’m working on data structures that require the use of path mapper instead of flip matrix so I need to understand it’s behaviour.

I will leave the file below, any help would be appreciated.

best regards,
Sir Ernest Shackleton

mantain_null_items_path_mapper_flip_matrix_operation.gh (10.5 KB)

Is this what you’re looking for?

mantain_null_items_path_mapper_flip_matrix_operation_re.gh (13.4 KB)

Thanks for the reply.
In theory yes, but in practice no.

How could I apply that same logic in order to mantain nulls in this operation?

When the list lenght is three, no nulls appear.

Right now I’m realizing that I don’t fully understand the behaviour of this component so maybe my approach is wrong (I’m using two succesive path mappers because I can’t achieve what I want with only one).

best regards,
Sir Ernest Shackleton