dmlc / dmlc/dgl

how to construct a negative heterogeneous graph example?

Open
#7,172 1 comment 0 reactions 0 assignees View on GitHub
stale-issue
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

Hello everyone, I am trying to using rgcn form dgl to get an embedding of each node of a heterogeneous graph with features, and I want to construct a negative heterogeneous graph to compute the loss by using positive graph embedding subtract negative graph embedding. I am wondering how to construct a negative graph. Considering each edge in heterogeneous graph as a triple (src, relation, dst), here are three solutions I have thought.
1. In each relation, find a src and change the dst.
2. find an src and an dst, change the relation
3. both 1 and 2,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.