//************************************************************************* // Constructor: ReverseEnumerator() // /// <summary> /// Initializes a new instance of the ReverseEnumerator class. /// </summary> /// /// <param name="vertexCollection"> /// Collection being enumerated. /// </param> //************************************************************************* protected internal ReverseEnumerator ( VertexCollection vertexCollection ) { Debug.Assert(vertexCollection != null); m_oVertexCollection = vertexCollection; m_oCurrentNode = null; AssertValid(); }
Graph ( GraphDirectedness directedness ) : base(m_oIDGenerator.GetNextID()) { const String MethodName = "Constructor"; this.ArgumentChecker.CheckArgumentIsDefined( MethodName, "directedness", directedness, typeof(GraphDirectedness)); m_eDirectedness = directedness; m_oVertexCollection = new VertexCollection(this); m_oEdgeCollection = new EdgeCollection(this); AssertValid(); }
Graph ( GraphDirectedness directedness ) : base( m_oIDGenerator.GetNextID() ) { const String MethodName = "Constructor"; this.ArgumentChecker.CheckArgumentIsDefined( MethodName, "directedness", directedness, typeof(GraphDirectedness) ); m_eDirectedness = directedness; m_oVertexCollection = new VertexCollection(this); m_oEdgeCollection = new EdgeCollection(this); AssertValid(); }