make an igraph object using an adjacency matrix