Validate the partitioned graphs with supported formats Parameters: ----------- part_g : DGL Graph object created for the partitioned graphs formats : string formats(csc, coo, csr) supported formats and multiple values can be seperated by comma
(part_g, formats)
| 57 | |
| 58 | |
| 59 | def verify_partition_formats(part_g, formats): |
| 60 | """Validate the partitioned graphs with supported formats |
| 61 | |
| 62 | Parameters: |
| 63 | ----------- |
| 64 | part_g : DGL Graph object |
| 65 | created for the partitioned graphs |
| 66 | formats : string |
| 67 | formats(csc, coo, csr) supported formats and multiple |
| 68 | values can be seperated by comma |
| 69 | """ |
| 70 | # Verify saved graph formats |
| 71 | if formats is None: |
| 72 | assert "coo" in part_g.formats()["created"] |
| 73 | else: |
| 74 | formats = formats.split(",") |
| 75 | for format in formats: |
| 76 | assert format in part_g.formats()["created"] |
| 77 | |
| 78 | |
| 79 | def verify_graph_feats( |