diag(adjMatrix) <-0 On Aug 13, 2011, at 7:34 AM, collegegurl69 wrote: > I have created an adjacency matrix but have not been able to figure something > out. I need to put zeros on the diagonal of the adjacency matrix. For > instance, location (i,i) to equal 0. Please help. Thanks