Giter VIP home page Giter VIP logo

Comments (4)

cynricfu avatar cynricfu commented on August 23, 2024

For example, if we have a graph with 3 nodes [0, 1, 2] and edges [(0, 1), (0, 2), (1, 0), (2, 0)]
If we sample node 0 as the target node for graph convolution, parse_minibatch would firstly fetch the adjlist of node 0, that is [(0, 1), (0, 2)]
In DGL, the natural way to do graph convolution is to let message flow from the source nodes to the target node. So here I reverse the node pairs to be [(1, 0), (2, 0)] to let message flow from node 1 and node 2 to node 0.

from magnn.

zezhishao avatar zezhishao commented on August 23, 2024

Thanks for your reply! I think I understand.

But I still want to confirm whether the basis of this operation is that the relationship between the two nodes of DBLP is always bidirectional. (e.g., write vs. written by)

For example, in the graph [(0, 1), (0, 2), (1, 0)], the relationship between nodes is not always bidirectional, so when updating the target node 0, the extracted edge should be [(1,0)] instead of [(1,0),(2,0)].

Is this understanding correct?

from magnn.

cynricfu avatar cynricfu commented on August 23, 2024

Yes, in my preprocessing and model, each relationship between two nodes is converted to two directional edges. E.g., "A writes B" would be treated as "A writes B" and "B is written by A".

from magnn.

zezhishao avatar zezhishao commented on August 23, 2024

ok, thank you very much!

from magnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.