as_adj_weighted function

weighted dense adjacency matrix