// public void GetGraphStructure(ref nvgraphCSRTopology32I topologyData) //{ // nvgraphTopologyType type = nvgraphTopologyType.CSR32; // res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, ref topologyData, ref type); // Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res)); // if (res != nvgraphStatus.Success) throw new NVGraphException(res); //} //public void GetGraphStructure(ref nvgraphCSCTopology32I topologyData) // { // nvgraphTopologyType type = nvgraphTopologyType.CSC32; // res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, ref topologyData, ref type); // Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res)); // if (res != nvgraphStatus.Success) throw new NVGraphException(res); //} public void GetGraphStructure(nvgraphTopologyBase topologyData, ref nvgraphTopologyType type) { res = NVGraphNativeMathods.nvgraphGetGraphStructure(_context, _descr, topologyData, ref type); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvgraphGetGraphStructure", res)); if (res != nvgraphStatus.Success) { throw new NVGraphException(res); } }
public static extern nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType);
public static extern nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType);
public static extern nvgraphStatus nvgraphConvertTopology(nvgraphContext handle, nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType, nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData);