-
If I use a naive implementation of GCN_norm (for example this one ) then it will just add an extra self-loop (even when there is already a self-loop) and also uses |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
In theory, |
Beta Was this translation helpful? Give feedback.
In theory,
gcn_norm
is only well-defined on undirected graphs since it takes the degrees for both source and destination node into account. Ofc, it will still give you a reasonable output for directed graphs, but you may need to choose whether to do the computation based on the in-degree (target_to_source
) or out-degree (source_to_target
).gcn_norm
will check if there is already a self-loop present and will not another one for these nodes.