GraKeL icon indicating copy to clipboard operation
GraKeL copied to clipboard

How to use the edge weight information of a graph?

Open happysnzy opened this issue 1 year ago • 2 comments

First of all thank you very much, Grakel really helped me a lot with my research. But I'm currently running into a problem. I want to compute graph similarity using Grakel, such as random walk kernel. But I read the introduction in the document (https://ysig.github.io/GraKeL/0.1a8/graph_kernel.html), these kernels do not use the edge weight information of the graph. I sincerely want to know how I can take advantage of the weighted edges of the graphs.

happysnzy avatar Jul 13 '22 07:07 happysnzy

You can use weight information if you add it as float values in the agacency matrix.

ysig avatar Sep 12 '22 12:09 ysig

Hi @happysnzy , This has been discussed in the past. See this: https://github.com/ysig/GraKeL/issues/37

giannisnik avatar Sep 12 '22 13:09 giannisnik