示例#1
0
    public Vertex RandomNeighbor(Vertex startVertex)
    {
        var edges = mapGraph.EdgeList(startVertex);

        return(edges[random.Next(edges.Count)].End);
    }