cugraph.structure.graph_implementation.simpleGraphImpl.get_two_hop_neighbors#

simpleGraphImpl.get_two_hop_neighbors(start_vertices=None)[source]#

Compute vertex pairs that are two hops apart. The resulting pairs are sorted before returning.

Returns:
dfcudf.DataFrame
df[first]cudf.Series

the first vertex id of a pair, if an external vertex id is defined by only one column

df[second]cudf.Series

the second vertex id of a pair, if an external vertex id is defined by only one column