At the beginning of the function "graphwave", the code uses `nx.adjacency_matrix(G)` (nx). When I want to use 'type =pygsp', it will throw an error.