Skip to main content
. 2024 Feb 29;10:e1858. doi: 10.7717/peerj-cs.1858

Algorithm 1. Extended bipartite graph convolutional network algorithm.

Input: Bipartite Graph G(V,E), Node Features X, Adjacency Matrix A, Network Depth L, Tolerance Error ε
Output: Node Embeddings Z
Preprocessing: Verify if A is the adjacency matrix of a bipartite graph, and normalize it;
Initialize node embeddings H(0)=X;
for l=1 to L do
  Compute normalized degree matrix D12;
  Compute propagation matrix D12AD12;
  Update the embedding matrix H(l)=ReLU(D12AD12H(l1)W(l));
  if H(l)H(l1)∥<ε then
   break;
  end
end
Output the final layer’s embedding matrix Z=H(L);
return Z;