Show / Hide Table of Contents

    Class NVGraphNativeMathods

    C# wrapper for nvgraph.h

    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()
    Namespace: ManagedCuda.NVGraph
    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT numsets
    cudaDataType[] settypes
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT numsets
    cudaDataType[] settypes
    Returns
    Type Description
    nvgraphStatus

    nvgraphConvertGraph(nvgraphContext, nvgraphGraphDescr, nvgraphGraphDescr, nvgraphTopologyType)

    Convert graph to another structure

    Declaration
    public static nvgraphStatus nvgraphConvertGraph(nvgraphContext handle, nvgraphGraphDescr srcDescrG, nvgraphGraphDescr dstDescrG, nvgraphTopologyType dstTType)
    Parameters
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr srcDescrG
    nvgraphGraphDescr dstDescrG
    nvgraphTopologyType dstTType
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphTopologyType srcTType
    nvgraphTopologyBase srcTopology
    CUdeviceptr srcEdgeData
    cudaDataType dataType
    nvgraphTopologyType dstTType
    nvgraphTopologyBase dstTopology
    CUdeviceptr dstEdgeData
    Returns
    Type Description
    nvgraphStatus

    nvgraphCreate(ref nvgraphContext)

    Open the library and create the handle

    Declaration
    public static nvgraphStatus nvgraphCreate(ref nvgraphContext handle)
    Parameters
    Type Name Description
    nvgraphContext handle
    Returns
    Type Description
    nvgraphStatus

    nvgraphCreateGraphDescr(nvgraphContext, ref nvgraphGraphDescr)

    Create an empty graph descriptor

    Declaration
    public static nvgraphStatus nvgraphCreateGraphDescr(nvgraphContext handle, ref nvgraphGraphDescr descrG)
    Parameters
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    Returns
    Type Description
    nvgraphStatus

    nvgraphDestroy(nvgraphContext)

    Close the library and destroy the handle

    Declaration
    public static nvgraphStatus nvgraphDestroy(nvgraphContext handle)
    Parameters
    Type Name Description
    nvgraphContext handle
    Returns
    Type Description
    nvgraphStatus

    nvgraphDestroyGraphDescr(nvgraphContext, nvgraphGraphDescr)

    Destroy a graph descriptor

    Declaration
    public static nvgraphStatus nvgraphDestroyGraphDescr(nvgraphContext handle, nvgraphGraphDescr descrG)
    Parameters
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    Returns
    Type Description
    nvgraphStatus

    nvgraphExtractSubgraphByEdge(nvgraphContext, nvgraphGraphDescr, nvgraphGraphDescr, Int32[], SizeT)

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    nvgraphGraphDescr subdescrG
    System.Int32[] subedges
    SizeT numedges
    Returns
    Type Description
    nvgraphStatus

    nvgraphExtractSubgraphByVertex(nvgraphContext, nvgraphGraphDescr, nvgraphGraphDescr, Int32[], SizeT)

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    nvgraphGraphDescr subdescrG
    System.Int32[] subvertices
    SizeT numvertices
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    CUdeviceptr edgeData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    System.IntPtr edgeData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    nvgraphTopologyBase topologyData
    nvgraphTopologyType TType
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    CUdeviceptr vertexData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    System.IntPtr vertexData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    nvgraphPagerank(nvgraphContext, nvgraphGraphDescr, SizeT, IntPtr, SizeT, Int32, SizeT, Single, Int32)

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT weight_index
    System.IntPtr alpha
    SizeT bookmark_index
    System.Int32 has_guess
    SizeT pagerank_index
    System.Single tolerance
    System.Int32 max_iter
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    CUdeviceptr edgeData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    System.IntPtr edgeData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    nvgraphTopologyBase topologyData
    nvgraphTopologyType TType
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    CUdeviceptr vertexData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    System.IntPtr vertexData
    SizeT setnum
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT weight_index
    System.IntPtr alpha
    SizeT x_index
    System.IntPtr beta
    SizeT y_index
    nvgraphSemiring SR
    Returns
    Type Description
    nvgraphStatus

    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT weight_index
    System.Int32 source_vert
    SizeT sssp_index
    Returns
    Type Description
    nvgraphStatus
    | Improve this Doc View Source

    nvgraphStatusGetString(nvgraphStatus)

    Declaration
    public static string nvgraphStatusGetString(nvgraphStatus status)
    Parameters
    Type Name Description
    nvgraphStatus status
    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
    Type Name Description
    nvgraphContext handle
    nvgraphGraphDescr descrG
    SizeT weight_index
    System.Int32 source_vert
    SizeT widest_path_index
    Returns
    Type Description
    nvgraphStatus
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX