Create a heterograph from shared memory with the given name. The newly created graph will have the same node types and edge types as the original graph. But it does not have node features or edges features. Paramaters ---------- name : str The name of the share memory
(name)
| 185 | |
| 186 | |
| 187 | def hetero_from_shared_memory(name): |
| 188 | """Create a heterograph from shared memory with the given name. |
| 189 | |
| 190 | The newly created graph will have the same node types and edge types as the original graph. |
| 191 | But it does not have node features or edges features. |
| 192 | |
| 193 | Paramaters |
| 194 | ---------- |
| 195 | name : str |
| 196 | The name of the share memory |
| 197 | |
| 198 | Returns |
| 199 | ------- |
| 200 | HeteroGraph (in shared memory) |
| 201 | """ |
| 202 | g, ntypes, etypes = heterograph_index.create_heterograph_from_shared_memory( |
| 203 | name |
| 204 | ) |
| 205 | return DGLGraph(g, ntypes, etypes) |
| 206 | |
| 207 | |
| 208 | def heterograph(data_dict, num_nodes_dict=None, idtype=None, device=None): |