code: public static int cuGraphAddDependencies(CUgraph hGraph, CUgraphNode from[], CUgraphNode to[], long numDependencies) 
      {
          return checkResult(cuGraphAddDependenciesNative(hGraph, from, to, numDependencies));
      }
docs: Adds dependency edges to a graph.<br>
  <br>
  The number of dependencies to be added is defined by \p numDependencies
  Elements in \p from and \p to at corresponding indices define a dependency.
  Each node in \p from and \p to must belong to \p hGraph.<br>
  <br>
  If \p numDependencies is 0, elements in \p from and \p to will be ignored.
  Specifying an existing dependency will return an error.<br>
  
  @param hGraph - Graph to which dependencies are added
  @param from - Array of nodes that provide the dependencies
  @param to - Array of dependent nodes
  @param numDependencies - Number of dependencies to be added
  
  @return
  CUDA_SUCCESS,
  CUDA_ERROR_INVALID_VALUE
  
  @see
  JCudaDriver#cuGraphRemoveDependencies
  JCudaDriver#cuGraphGetEdges
  JCudaDriver#cuGraphNodeGetDependencies
  JCudaDriver#cuGraphNodeGetDependentNodes