Class NVGraphNativeMathods
Inheritance
System.Object
NVGraphNativeMathods
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NVGraph.dll
Syntax
public static class NVGraphNativeMathods
Methods
nvgraphAllocateEdgeData(nvgraphContext, nvgraphGraphDescr, SizeT, cudaDataType[])
Allocate numsets vectors of size E reprensenting Edge Data and attached them the graph.
settypes[i] is the type of vector #i, currently all Vertex and Edge data should have the same type
Declaration
public static nvgraphStatus nvgraphAllocateEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes)
Parameters
Returns
nvgraphAllocateVertexData(nvgraphContext, nvgraphGraphDescr, SizeT, cudaDataType[])
Allocate numsets vectors of size V reprensenting Vertex Data and attached them the graph.
settypes[i] is the type of vector #i, currently all Vertex and Edge data should have the same type
Declaration
public static nvgraphStatus nvgraphAllocateVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT numsets, cudaDataType[] settypes)
Parameters
Returns
nvgraphConvertGraph(nvgraphContext, nvgraphGraphDescr, nvgraphGraphDescr, nvgraphTopologyType)
Convert graph to another structure
Declaration
public static nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType)
Parameters
Returns
nvgraphConvertTopology(nvgraphContext, nvgraphTopologyType, nvgraphTopologyBase, CUdeviceptr, ref cudaDataType, nvgraphTopologyType, nvgraphTopologyBase, CUdeviceptr)
Convert the edge data to another topology
Declaration
public static nvgraphStatus nvgraphConvertTopology(nvgraphContext handle, nvgraphTopologyType srcTType, nvgraphTopologyBase srcTopology, CUdeviceptr srcEdgeData, ref cudaDataType dataType, nvgraphTopologyType dstTType, nvgraphTopologyBase dstTopology, CUdeviceptr dstEdgeData)
Parameters
Returns
nvgraphCreate(ref nvgraphContext)
Open the library and create the handle
Declaration
public static nvgraphStatus nvgraphCreate(ref nvgraphContext handle)
Parameters
Returns
nvgraphCreateGraphDescr(nvgraphContext, ref nvgraphGraphDescr)
Create an empty graph descriptor
Declaration
public static nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG)
Parameters
Returns
nvgraphDestroy(nvgraphContext)
Close the library and destroy the handle
Declaration
public static nvgraphStatus nvgraphDestroy(nvgraphContext handle)
Parameters
Returns
nvgraphDestroyGraphDescr(nvgraphContext, nvgraphGraphDescr)
Destroy a graph descriptor
Declaration
public static nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG)
Parameters
Returns
create a new graph by extracting a subgraph given a list of edges
Declaration
public static nvgraphStatus nvgraphExtractSubgraphByEdge(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subedges, SizeT numedges)
Parameters
Returns
create a new graph by extracting a subgraph given a list of vertices
Declaration
public static nvgraphStatus nvgraphExtractSubgraphByVertex(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphGraphDescr subdescrG, int[] subvertices, SizeT numvertices)
Parameters
Returns
nvgraphGetEdgeData(nvgraphContext, nvgraphGraphDescr, CUdeviceptr, SizeT)
Copy the edge set #setnum in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure */
Declaration
public static nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum)
Parameters
Returns
nvgraphGetEdgeData(nvgraphContext, nvgraphGraphDescr, IntPtr, SizeT)
Copy the edge set #setnum in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure */
Declaration
public static nvgraphStatus nvgraphGetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum)
Parameters
Returns
nvgraphGetGraphStructure(nvgraphContext, nvgraphGraphDescr, nvgraphTopologyBase, ref nvgraphTopologyType)
Query size and topology information from the graph descriptor
Declaration
public static nvgraphStatus nvgraphGetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, ref nvgraphTopologyType TType)
Parameters
Returns
nvgraphGetVertexData(nvgraphContext, nvgraphGraphDescr, CUdeviceptr, SizeT)
Copy the edge set #setnum in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum)
Parameters
Returns
nvgraphGetVertexData(nvgraphContext, nvgraphGraphDescr, IntPtr, SizeT)
Copy the edge set #setnum in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphGetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum)
Parameters
Returns
nvGRAPH PageRank
Find PageRank for each vertex of a graph with a given transition probabilities, a bookmark vector of dangling vertices, and the damping factor.
Declaration
public static 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)
Parameters
Returns
nvgraphSetEdgeData(nvgraphContext, nvgraphGraphDescr, CUdeviceptr, SizeT)
Update the edge set #setnum with the data in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr edgeData, SizeT setnum)
Parameters
Returns
nvgraphSetEdgeData(nvgraphContext, nvgraphGraphDescr, IntPtr, SizeT)
Update the edge set #setnum with the data in *edgeData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphSetEdgeData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr edgeData, SizeT setnum)
Parameters
Returns
nvgraphSetGraphStructure(nvgraphContext, nvgraphGraphDescr, nvgraphTopologyBase, nvgraphTopologyType)
Set size, topology data in the graph descriptor
Declaration
public static nvgraphStatus nvgraphSetGraphStructure(nvgraphContext handle, nvgraphGraphDescr descrG, nvgraphTopologyBase topologyData, nvgraphTopologyType TType)
Parameters
Returns
nvgraphSetVertexData(nvgraphContext, nvgraphGraphDescr, CUdeviceptr, SizeT)
Update the vertex set #setnum with the data in *vertexData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, CUdeviceptr vertexData, SizeT setnum)
Parameters
Returns
nvgraphSetVertexData(nvgraphContext, nvgraphGraphDescr, IntPtr, SizeT)
Update the vertex set #setnum with the data in *vertexData, sets have 0-based index
Conversions are not sopported so nvgraphTopologyType_t should match the graph structure
Declaration
public static nvgraphStatus nvgraphSetVertexData(nvgraphContext handle, nvgraphGraphDescr descrG, IntPtr vertexData, SizeT setnum)
Parameters
Returns
nvgraphSrSpmv(nvgraphContext, nvgraphGraphDescr, SizeT, IntPtr, SizeT, IntPtr, SizeT, nvgraphSemiring)
nvGRAPH Semi-ring sparse matrix vector multiplication
Declaration
public static nvgraphStatus nvgraphSrSpmv(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, IntPtr alpha, SizeT x_index, IntPtr beta, SizeT y_index, nvgraphSemiring SR)
Parameters
Returns
nvgraphSssp(nvgraphContext, nvgraphGraphDescr, SizeT, ref Int32, SizeT)
nvGRAPH Single Source Shortest Path (SSSP)
Calculate the shortest path distance from a single vertex in the graph to all other vertices.
Declaration
public static nvgraphStatus nvgraphSssp(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, ref int source_vert, SizeT sssp_index)
Parameters
Returns
|
Improve this Doc
View Source
nvgraphStatusGetString(nvgraphStatus)
Declaration
public static string nvgraphStatusGetString(nvgraphStatus status)
Parameters
Returns
| Type |
Description |
| System.String |
|
nvgraphWidestPath(nvgraphContext, nvgraphGraphDescr, SizeT, ref Int32, SizeT)
nvGRAPH WidestPath
Find widest path potential from source_index to every other vertices.
Declaration
public static nvgraphStatus nvgraphWidestPath(nvgraphContext handle, nvgraphGraphDescr descrG, SizeT weight_index, ref int source_vert, SizeT widest_path_index)
Parameters
Returns