コード例 #1
0
        public PartitionVertexIterable(IEnumerable <IVertex> iterable, PartitionGraph graph)
        {
            if (iterable == null)
            {
                throw new ArgumentNullException(nameof(iterable));
            }
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }

            _iterable = iterable;
            _graph    = graph;
        }
コード例 #2
0
        public PartitionIndex(IIndex rawIndex, PartitionGraph graph)
        {
            if (rawIndex == null)
            {
                throw new ArgumentNullException(nameof(rawIndex));
            }
            if (graph == null)
            {
                throw new ArgumentNullException(nameof(graph));
            }

            RawIndex = rawIndex;
            Graph    = graph;
        }
コード例 #3
0
        public PartitionEdge(IEdge edge, PartitionGraph innerTinkerGrapĥ)
            : base(edge, innerTinkerGrapĥ)
        {
            if (edge == null)
            {
                throw new ArgumentNullException(nameof(edge));
            }
            if (innerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(innerTinkerGrapĥ));
            }

            _edge = edge;
        }
コード例 #4
0
        public PartitionVertex(IVertex vertex, PartitionGraph innerTinkerGrapĥ)
            : base(vertex, innerTinkerGrapĥ)
        {
            if (vertex == null)
            {
                throw new ArgumentNullException(nameof(vertex));
            }
            if (innerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(innerTinkerGrapĥ));
            }

            Vertex = vertex;
        }
コード例 #5
0
        protected PartitionElement(IElement element, PartitionGraph partitionInnerTinkerGrapĥ) : base(partitionInnerTinkerGrapĥ)
        {
            if (element == null)
            {
                throw new ArgumentNullException(nameof(element));
            }

            if (partitionInnerTinkerGrapĥ == null)
            {
                throw new ArgumentNullException(nameof(partitionInnerTinkerGrapĥ));
            }

            Element = element;
            PartitionInnerTinkerGrapĥ = partitionInnerTinkerGrapĥ;
        }