Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
拓展Cell基类,添加customId静态方法,便于自定义节点/边id
Motivation and Context
我的使用场景 #4442 需要让节点能按照不同的前缀生成id,翻阅了相关issue都没有一个较为简单的办法
因此考虑扩展Cell基类,添加customId静态方法:
customId
方法时:和原行为一致,通过StringExt.uuid()
创建idcustomId
方法时,用户可根据传入的metadata
信息自定义idTypes of changes
Self Check before Merge