grMAT function

Graph to adjacency matrix