示例#1
0
    public void AddRamdomNeighbour()
    {
        Node n = null;

        if (nodes.Count >= 2)
        {
            n = net.GetRandomNeighbour(LastNode, nodes[nodes.Count - 2]);
        }
        else
        {
            n = net.GetRandomNeighbour(LastNode, null);
        }

        if (n != null)
        {
            AddNode(n);
        }
    }