/// <summary> /// Creates a new PolyEModel. /// </summary> /// <param name="nodes">The number of nodes on the graph.</param> /// <param name="kids">The number of kids each node can have at max.</param> /// <param name="offset">The offset from the average number of kids during generation.</param> /// <param name="leaf">The chance a node will be a leaf.</param> public PolyEModel(int nodes, int kids, int offset, int leaf) { _rand = new Random(); _graph = new ModelGraph(_rand, nodes, kids, offset, leaf); _graph.BuildSet(SpawnMaker, JuncMaker, TermMaker); }