XGCN.data.split.split_edges
- XGCN.data.split.split_edges(indptr, indices, num_sample, min_src_out_degree, min_dst_in_degree)
Given a CSR graph, split a number of edges according to the requirements of the source/destination node’s degrees.
Note: the edges split happens in-place
Parameters
- indptrnumpy.ndarray
The indptr of the CSR graph.
- indicesnumpy.ndarray
The indices of the CSR graph.
num_sample : int
min_src_out_degree : int
min_dst_in_degree : int
Returns
indptr : numpy.ndarray
indices : numpy.ndarray
pos_edges : numpy.ndarray