Suppose I have a integer matrix which represents who has emailed whom and how many times. For social network analysis I'd like to make a simple undirected graph. So I need to convert the matrix to binary matrix and later into a list of tuples.
My question: is there a fast, convenient way to reduce the decimal matrix to a binary matrix.
Such that:
26, 3, 0
3, 195, 1
0, 1, 17
Becomes:
1, 1, 0
1, 1, 1
0, 1, 1