Graph Filtering

How do I create an MFG (Message Flow graph) for the given set of node_id’s from the entire graph?

I wanted to do this for making the inference on a given node (Instead of passing the entire graph, passing an MFG of the given node (let’s say up to 2 hops) into inference is better right!)

Let’s say I have a heterogeneous graph of user and item types. How do I filter this graph for a given 1 user node_id and 10 item node_ids? such that I can predict the links between this 1 user and 10 items.

You can initialize a NodeDataLoader with your single user and 10 item nodes as the node ID argument, and make them appear in a single batch (by setting a large batch size). The NodeDataLoader will return your needed MFGs.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.