Skip to content

Commit

Permalink
add comment to create_hetero_graph()
Browse files Browse the repository at this point in the history
  • Loading branch information
CfromBU committed Dec 19, 2024
1 parent a9539dc commit 636c61c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/distributed/test_distributed_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1862,6 +1862,9 @@ def test_local_sampling_heterograph(num_parts, use_graphbolt, prob_or_mask):
def check_hetero_dist_edge_dataloader_gb(
tmpdir, num_server, use_graphbolt=True
):
# Custom function to create a heterogeneous graph, ensuring that edges with missing masks
# can still be used to sample in DistEdgeDataloader. create_random_hetero does not support this case,
# so this function was added to handle the requirement.
def create_hetero_graph():
num_nodes = {"n1": 210, "n2": 200, "n3": 220, "n4": 230}
etypes = [("n1", "r12", "n2"), ("n2", "r23", "n3"), ("n3", "r34", "n4")]
Expand Down

0 comments on commit 636c61c

Please sign in to comment.