divkgradu_graph(A,q​q)

div k grad u operator for a graph with nodal k values
75 Downloads
Updated 30 Nov 2014

View License

Constructs the graph inhomogeneous Poisson matrix K (u -> div k grad u operator, generalization of graph Laplacian), with adjacency matrix A and nodal values of resistance k supplied by the user. Edge resistances are computed as the average resistance of the two nodes the edge connects.
Example usage:
A = sprandsym(100,10/100); % 100 nodes, about 10 edges per node
qq = 1 + rand(100,1); %Nodal resistance values
K = divkgradu_graph(A,qq); %Graph poisson operator

Cite As

Nick Alger (2024). divkgradu_graph(A,qq) (https://www.mathworks.com/matlabcentral/fileexchange/48602-divkgradu_graph-a-qq), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0