di = gsp_div(G,s)
G | Graph structure |
s | Signal living on the edges |
di | Divergence |
The divergence operator is the adjoint of the gradient operator. For graphs, the divergence of a signal residing on edges gives a signal living on the nodes. The result should be such that:
gsp_div(G,gsp_grad(G,s)) = G.L * s,
Before using this function, you need to call the function:
G = gsp_adj2vec(G)