Represents a collection of vertices.
This is a collection of objects that implement the IVertex interface. You can add vertices to the collection, remove them, access a vertex, and enumerate all vertices.
Inheritance: NodeXLBase, IVertexCollection
            //*************************************************************************
            //  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();
            }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
    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();
    }