/// <summary> /// Initializes a new instance of the <see cref="IreliaQ" /> class. /// </summary> /// <param name="graphGenerator"> /// The graph generator. /// </param> /// <param name="pathfinderModule"> /// The pathfinder module. /// </param> public IreliaQ( IGraphGenerator <AStarNode, AStarEdge <AStarNode> > graphGenerator, PathfinderModule pathfinderModule) { this.GraphGenerator = graphGenerator; this.PathfinderModule = pathfinderModule; }
/// <summary> /// Метод, вызываемый после клика на кнопку "OK". /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void buttonOK_Click(object sender, RoutedEventArgs e) { try { Generator = new SimpleRandom(VertexCount, MedCount, VillCount); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); return; } DialogResult = true; Close(); }
public GenericGraphTest() { m_Generator = new AdjacencyGraphGenerator(); }
public GenericGraphTest() { m_Generator = null; }
/// <summary> /// Generates a sub-graph of this graph using an opaque graph generator /// </summary> /// <param name="generator">The generator to use</param> /// <returns>A graph derived from this graph</returns> public virtual Graph GenerateGraph(IGraphGenerator generator) { return(generator.GenerateGraph(this)); }