Skip to content

[BUG] is_edge_ids in uniform_sampling does not seem to do anything #2562

@VibhuJawa

Description

@VibhuJawa

Describe the bug

When we pass is_edge_ids=True we dont seem to do anything with it in the uniform_neighbor_sample function (see below). We should triage this and fix it accordingly.

def uniform_neighbor_sample(G,
start_list,
fanout_vals,
with_replacement=True,
is_edge_ids=False):
"""
Does neighborhood sampling, which samples nodes from a graph based on the
current node's neighbors, with a corresponding fanout value at each hop.
Note: This is a pylibcugraph-enabled algorithm, which requires that the
graph was created with legacy_renum_only=True.
Parameters
----------
G : cugraph.Graph
cuGraph graph, which contains connectivity information as dask cudf
edge list dataframe
start_list : list or cudf.Series (int32)
a list of starting vertices for sampling
fanout_vals : list (int32)
List of branching out (fan-out) degrees per starting vertex for each
hop level.
with_replacement: bool, optional (default=True)
Flag to specify if the random sampling is done with replacement

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions