Exemple #1
0
 public ViaControl(BoBox.Graph.Via box)
     : base(box)
 {
     Label = string.Format("Via {0}", Vertex.VertexId.ToString());
 }
Exemple #2
0
 public BoxControl(BoBox.Graph.Box box)
     : base(box)
 {
     Label = string.Format("Box {0}", Vertex.VertexId.ToString());
 }        
Exemple #3
0
        static void BFS(BoBox.Graph.Interface.IVertex source)
        {
            Queue<BoBox.Graph.Interface.IVertex> queue_ = new Queue<BoBox.Graph.Interface.IVertex>();
            BFS_InsertChildren(source.EdgesOut, queue_);

            while (queue_.Count > 0)
            {
                var vertex = queue_.Dequeue();
                BFS_InsertChildren(vertex.EdgesOut, queue_);
                // neco udelej
                if (vertex is BoBox.Graph.Interface.IGraph)
                {
                    Console.WriteLine();
                    BFS(((BoBox.Graph.Interface.IGraph)vertex).Source);
                    Console.WriteLine();
                }
                else
                {
                    Console.Write("{0} ", vertex.VertexId);
                }
                
            }

        }