Exemple #1
0
        private void HandleStartVertex(TVertex vertex)
        {
            // Insert each edge into the sweep line state, and the the helper
            // of each edge to be this vertex. There are no connections to be made.

            // We can iterate through all edges because we know this is a start vertex
            // with no above-incident edges
            Debug.Assert(helpers.Count == 0);
            foreach (EdgeBase edge in vertex.Edges)
            {
                helpers.Add(edge, vertex);
            }
            Debug.Assert(helpers.Count == vertex.Degree);
        }
Exemple #2
0
 private void HandleStartVertex(TVertex vertex)
 {
     helpers.Add(vertex, vertex);
 }