示例#1
0
        public Immitation(Graph graph, LehmerRandom random, State start)
        {
            _graph      = graph;
            _random     = random;
            _startState = start;

            reset();
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            graph      = new Graph();
            random     = new LehmerRandom(UInt64.Parse("1664525"), UInt64.Parse("4294967296"), UInt64.Parse("1013904223"));
            immitation = new Immitation(graph, random, new State("0000"));
            states     = new Dictionary <State, int>();

            OutputLastState();
        }