Nevron .NET Vision
Nevron.Diagram.DataStructures Namespace / NGraph Class / GetShortestPath Method
The start vertex
The end vertex


In This Topic
    GetShortestPath Method (NGraph)
    In This Topic
    Returns the shortest path (if any) between the given vertices
    Syntax
    'Declaration
     
    
    Public Overridable Function GetShortestPath( _
       ByVal startVertex As NGraphVertex, _
       ByVal endVertex As NGraphVertex _
    ) As NGraphVertexList
    'Usage
     
    
    Dim instance As NGraph
    Dim startVertex As NGraphVertex
    Dim endVertex As NGraphVertex
    Dim value As NGraphVertexList
     
    value = instance.GetShortestPath(startVertex, endVertex)
    public virtual NGraphVertexList GetShortestPath( 
       NGraphVertex startVertex,
       NGraphVertex endVertex
    )

    Parameters

    startVertex
    The start vertex
    endVertex
    The end vertex

    Return Value

    The vertices in the shortest path without the start and the end vertex
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also