Beispiel #1
0
        public ReadOnlyIndexIterable(ReadOnlyGraph graph, IEnumerable <IIndex> iterable)
        {
            if (iterable == null)
            {
                throw new ArgumentNullException(nameof(iterable));
            }

            _graph    = graph;
            _iterable = iterable;
        }
Beispiel #2
0
        public ReadOnlyEdge(ReadOnlyGraph innerTinkerGrapĥ, IEdge baseEdge)
            : base(innerTinkerGrapĥ, baseEdge)
        {
            if (innerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(innerTinkerGrapĥ));
            }
            if (baseEdge == null)
            {
                throw new ArgumentNullException(nameof(baseEdge));
            }

            _baseEdge = baseEdge;
        }
        public ReadOnlyVertex(ReadOnlyGraph innerTinkerGrapĥ, IVertex baseVertex)
            : base(innerTinkerGrapĥ, baseVertex)
        {
            if (innerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(innerTinkerGrapĥ));
            }
            if (baseVertex == null)
            {
                throw new ArgumentNullException(nameof(baseVertex));
            }

            _baseVertex = baseVertex;
        }
        public ReadOnlyEdgeIterable(ReadOnlyGraph graph, IEnumerable <IEdge> iterable)
        {
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }
            if (iterable == null)
            {
                throw new ArgumentNullException(nameof(iterable));
            }

            _graph    = graph;
            _iterable = iterable;
        }
Beispiel #5
0
        public ReadOnlyIndex(ReadOnlyGraph graph, IIndex rawIndex)
        {
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }
            if (rawIndex == null)
            {
                throw new ArgumentNullException(nameof(rawIndex));
            }

            _graph   = graph;
            RawIndex = rawIndex;
        }
        protected ReadOnlyElement(ReadOnlyGraph innerTinkerGrapĥ, IElement baseElement) : base(innerTinkerGrapĥ)
        {
            if (innerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(innerTinkerGrapĥ));
            }
            if (baseElement == null)
            {
                throw new ArgumentNullException(nameof(baseElement));
            }

            IsReadOnly  = true;
            BaseElement = baseElement;
            ReadOnlyInnerTinkerGrapĥ = innerTinkerGrapĥ;
        }