Filtering nodes based on...
Posted: 13 Apr 2017 15:48
Hello everyone.
I can't think of an abstract way of explaining what I'm trying to do (other than it has to do with filtering) so I will use an example.
Suppose to have 6 nodes (N1, N2, N3, N4, N5, N6).
N1, N2 and N3 have only incoming edges.
N4, N5 and N6 have only outgoing edges.
Every node has the attribute "Color";
Color(N1,N2)="blue";
Color(N3)="red";
Color(N4,N5,N6)="null".
I want to hide the nodes with outgoing edges that are linked 'to just one color' (just to "blue" or just to "red"). Therefore:
N1, N2, N3 are always shown.
N4 is connected to N1; N4 is hidden.
N5 is connected to N1 and N2; N5 is hidden.
N6 is connected to N1 and N3; N6 is shown.
Do you know if such a filter is feasible?
I can't think of an abstract way of explaining what I'm trying to do (other than it has to do with filtering) so I will use an example.
Suppose to have 6 nodes (N1, N2, N3, N4, N5, N6).
N1, N2 and N3 have only incoming edges.
N4, N5 and N6 have only outgoing edges.
Every node has the attribute "Color";
Color(N1,N2)="blue";
Color(N3)="red";
Color(N4,N5,N6)="null".
I want to hide the nodes with outgoing edges that are linked 'to just one color' (just to "blue" or just to "red"). Therefore:
N1, N2, N3 are always shown.
N4 is connected to N1; N4 is hidden.
N5 is connected to N1 and N2; N5 is hidden.
N6 is connected to N1 and N3; N6 is shown.
Do you know if such a filter is feasible?