import tensorflow as tf

    A tuple of `SparseTensor` (neibors, weights).
      neighbors: A `SparseTensor` of `int64`.
      weights: A `SparseTensor` of `float`.
      types: A `SparseTensor` of `int32`
  """
  sp_returns = base._LIB_OP.get_sorted_full_neighbor(nodes, edge_types)
  return tf.SparseTensor(*sp_returns[:3]), tf.SparseTensor(*sp_returns[3:6]), \
         tf.SparseTensor(*sp_returns[6:])


def sample_fanout(nodes, edge_types, counts, default_node=-1):
  """
  Sample multi-hop neighbors of nodes according to weight in graph.

