/// <summary> /// </summary> public GraphContext() { _context = new nvgraphContext(); res = NVGraphNativeMathods.nvgraphCreate(ref _context); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreate", res)); if (res != nvgraphStatus.Success) throw new NVGraphException(res); }
public static extern nvgraphStatus nvgraphSrSpmv(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, IntPtr alpha, SizeT x_index, IntPtr beta, SizeT y_index, nvgraphSemiring SR);
public static extern nvgraphStatus nvgraphPagerank(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, IntPtr alpha, SizeT bookmark_index, int has_guess, SizeT pagerank_index, float tolerance, int max_iter);
/// <summary> /// </summary> public GraphContext() { _context = new nvgraphContext(); res = NVGraphNativeMathods.nvgraphCreate(ref _context); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreate", res)); if (res != nvgraphStatus.Success) { throw new NVGraphException(res); } }
/// <summary> /// </summary> internal GraphDescriptor(nvgraphContext context) { _descr = new nvgraphGraphDescr(); _context = context; res = NVGraphNativeMathods.nvgraphCreateGraphDescr(_context, ref _descr); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphCreateGraphDescr", res)); if (res != nvgraphStatus.Success) { throw new NVGraphException(res); } }
public static extern nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum);
public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
public static extern nvgraphStatus nvgraphAllocateEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);
public static extern nvgraphStatus nvgraphDestroy(nvgraphContext handle);
public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle, nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType, nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);
public static extern nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum);
public static extern nvgraphStatus nvgraphExtractSubgraphByEdge(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges, SizeT numedges);
public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
public static extern nvgraphStatus nvgraphSssp(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, ref int source_vert, SizeT sssp_index);
public static extern nvgraphStatus nvgraphPagerank(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, IntPtr alpha, SizeT bookmark_index, int has_guess, SizeT pagerank_index, float tolerance, int max_iter );
public static extern nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum);
public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices );
public static extern nvgraphStatus nvgraphExtractSubgraphByEdge( nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges , SizeT numedges);
public static extern nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG);
public static extern nvgraphStatus nvgraphCreate(ref nvgraphContext handle);
public static extern nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices);
public static extern nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum);
public static extern nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG);
public static extern nvgraphStatus nvgraphWidestPath(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, ref int source_vert, SizeT widest_path_index);
public static extern nvgraphStatus nvgraphAllocateVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes);