code: public static int cuGraphGetEdges(CUgraph hGraph, CUgraphNode from[], CUgraphNode to[], long numEdges[]) 
      {
          return checkResult(cuGraphGetEdgesNative(hGraph, from, to, numEdges));
      }
docs: Returns a graph's dependency edges.<br>
  <br>
  Returns a list of \p hGraph's dependency edges. Edges are returned via corresponding
  indices in \p from and \p to; that is, the node in \p to[i] has a dependency on the
  node in \p from[i]. \p from and \p to may both be NULL, in which
  case this function only returns the number of edges in \p numEdges. Otherwise,
  \p numEdges entries will be filled in. If \p numEdges is higher than the actual
  number of edges, the remaining entries in \p from and \p to will be set to NULL, and
  the number of edges actually returned will be written to \p numEdges.
  
  @param hGraph   - Graph to get the edges from
  @param from     - Location to return edge endpoints
  @param to       - Location to return edge endpoints
  @param numEdges - See description
  
  @return
  CUDA_SUCCESS,
  CUDA_ERROR_DEINITIALIZED,
  CUDA_ERROR_NOT_INITIALIZED,
  CUDA_ERROR_INVALID_VALUE
  
  @see
  JCudaDriver#cuGraphGetNodes
  JCudaDriver#cuGraphGetRootNodes
  JCudaDriver#cuGraphAddDependencies
  JCudaDriver#cuGraphRemoveDependencies
  JCudaDriver#cuGraphNodeGetDependencies
  JCudaDriver#cuGraphNodeGetDependentNodes