How to get the eid or nid with some certain conditions?

For example, I want to get the eid of whose edge attribute like weight is larger than 0.8?

You may try DGLGraph.filter_edges.