dmlc / dmlc/dgl

remove multiple nodes/edges types simultaneously from heterograph

Open
#3,387 1 comment 0 reactions 1 assignee Claimed by @Rhett-Ying View on GitHub
feature request
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature

Request from user: https://discuss.dgl.ai/t/how-to-remove-multiple-types-of-nodes-simultaneously-with-eid-stored/2366/1.
For now, https://docs.dgl.ai/en/latest/generated/dgl.remove_nodes.html#dgl.remove_nodes supports single type only. so does `remove_edges`.

## Motivation
one want to remove multiple node types simultaneously and store original nids/eids. For now, we have to remove one by one in iterations and have to keep track of original nids/eids. If we want to query real original nids/eids, just walk backward. This is a bit inconvenient.

## Alternatives

## Pitch

## Additional context

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.