Hello kirupians

I'd like to create a system whereby words that will be selected will form a relational 'web'.

Is the best way to sort the keywords matching values (the algorithm i can do fine) a table whereby each keywords will be in the rows AND columns ? Which will mean keywords^2 cells ?

I could (and will) do a lot of empirical testing to find out what the real shape of the data is (bunched tags vs very parented etc...) but I'm willing to hear from someone who has worked on that kind of system and was proud of it !

thank you for your input

have a nice day