Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the issue of handling graph structures #65

Open
zhangzone opened this issue Sep 27, 2024 · 0 comments
Open

Regarding the issue of handling graph structures #65

zhangzone opened this issue Sep 27, 2024 · 0 comments

Comments

@zhangzone
Copy link

Hello, I have reviewed your code and found that when processing the OAG raw dataset, the content contained in the nodes is paper_node={'id ': paper_id,' title ': title,' type ':'paper', 'time': int (time)}. However, the data. py does not specify the node type, only
self.node_forward = defaultdict(lambda: {})
self.node_bacward = defaultdict(lambda: [])
self.node_feature = defaultdict(lambda: [])
I don't quite understand the usage of these three methods, I would like to use your HGT. My graph structure includes a node set node=defaultdict (lambda: {}), each node including node ID, type, etc. The edge set is a list, and each edge is edg=[source_node], target_node, time = None, relation_type = None], Can you directly use your HGT? I see that the graph structure you are processing is different from that in data.Py, and I don't know which type to convert it to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant