()
| 12 | |
| 13 | |
| 14 | def test_to_cugraph_conversion(): |
| 15 | g = dgl.graph((F.tensor([0, 1, 2, 3]), F.tensor([1, 0, 3, 2]))).to("cuda") |
| 16 | cugraph_g = g.to_cugraph() |
| 17 | |
| 18 | assert cugraph_g.number_of_nodes() == g.num_nodes() |
| 19 | assert cugraph_g.number_of_edges() == g.num_edges() |
| 20 | |
| 21 | assert cugraph_g.has_edge(0, 1) |
| 22 | assert cugraph_g.has_edge(1, 0) |
| 23 | assert cugraph_g.has_edge(3, 2) |
| 24 | |
| 25 | |
| 26 | def test_from_cugraph_conversion(): |
nothing calls this directly
no test coverage detected