public ViaControl(BoBox.Graph.Via box) : base(box) { Label = string.Format("Via {0}", Vertex.VertexId.ToString()); }
public BoxControl(BoBox.Graph.Box box) : base(box) { Label = string.Format("Box {0}", Vertex.VertexId.ToString()); }
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); } } }