Looking for links in tables
Posted: Mon Sep 02, 2024 12:00 pm
Hi,
I have a table like:
…..
Now I want to find for example al the links to name6
So:
Name6 is connected to Name11
Name11 is connected to Name1
Name1 is connected to Name5
Name1 is connected to Name2
….
Wat is the fastest way to to this?
What I did now is:
-First look for al the Names connected to that name and add source and the link+input in an array
-Then look for all names connected to the names in that array add source and the link in an array if the same source+link+input dous not exist.
and so on till the are no more new names
So the result a list of all unique name+links+inputs
Is there a better (faster) way to do this?
I have a table like:
Code: Select all | Expand
Name Link Input
Name1 Name5 1
Name2 Name1 1
Name3 Name20 1
Name4 Name10 1
Name5 Name6 2
Name6 Name11 1
Name7 Name2 2
Name8 Name20 1
Name9 Name1 1
Name10 Name5 3
Name11 Name1 1
Now I want to find for example al the links to name6
So:
Name6 is connected to Name11
Name11 is connected to Name1
Name1 is connected to Name5
Name1 is connected to Name2
….
Wat is the fastest way to to this?
What I did now is:
-First look for al the Names connected to that name and add source and the link+input in an array
-Then look for all names connected to the names in that array add source and the link in an array if the same source+link+input dous not exist.
and so on till the are no more new names
So the result a list of all unique name+links+inputs
Is there a better (faster) way to do this?