Skip to content

Disjoint Sampling - C/C++/PLC APIs #5042

@alexbarghi-nv

Description

@alexbarghi-nv

Disjoint sampling requires that each seed vertex have a separate, non-overlapping subgraph.

Pseudocode:

(begin hop k; suppose fanout is [f, f, ...])
for each node n:
  u = get_all_neighbors(n)
  u = select_neighbors(u, n, f)
  add_nodes_to_hop(u)

function select_neighbors(u, n, f):
  for v in u:
    if v in visited and visited[v] != n:
      remove v from u
    visited[v] = n

  return first f nodes from u

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions