cgcnn icon indicating copy to clipboard operation
cgcnn copied to clipboard

How to understand the shape of "nbr_fea_idx" in the code

Open Powerd0g opened this issue 3 years ago • 2 comments

I couldn't understand "the indices of M neighbors of each atom" Could you give me a simple example about the matrix of "nbr_fea_idx". Thank you!

Powerd0g avatar Dec 14 '21 07:12 Powerd0g

Thanks for your question. nbr_fea_idx is the indices of the M neighbors for each node. For instance, you have two nodes 0 and 1. Each node is connected to the other and has one neighbor. In this case, M = 1 and nbr_fea_idx = [[1], [0]].

txie-93 avatar Dec 14 '21 19:12 txie-93

Thanks for your answer. if node 0 is connected to a new node 2, but node 1 is not. In this case, what M and nbr_fea_idx look like?

Powerd0g avatar Dec 15 '21 03:12 Powerd0g