I need to create an adjaceny matrix from my data, which is currently in the form of a .txt file and is basically a two column incidence list. For example:
Where 1-m represent actors and A-n represent events. My goal is to have an (m x m) matrix where cell i,j equals 1 if two actors are incident to the same event and 0 otherwise (w/ zeros on the diagonal).
I'm new to Mathmatica, and so I'm on the steep part of the learning curve ... All I've been able to figure out so far is how to get my incidence list into the program using Import["filename.txt"]. But then what? How do I convert to the adjacency matrix? I've found the ToAdjacencyMatrix command in DiscreteMath`Combinatorica`, but I can't seem to get it to work ...
Thanks to any and all in advance.