GSP_ADJ2VEC - Prepare the graph for the gradient computation

Usage

[G] = gsp_adj2vec(G)

Input parameters

G Graph structure

Output parameters

G Graph structure

Description

This function converts adjacency matrix to edge vector form. It also add the field G.D that is the sparse gradient matrix