コード例 #1
0
            public object Clone()
            {
                IDataContainerEInstance <V, E, TV, TE> c     = (IDataContainerEInstance <V, E, TV, TE>) this.Container.Clone();
                IGraphHelperEImpl <V, E, TV, TE>       clone = new IGraphHelperEImpl <V, E, TV, TE> (c);

                clone.count_edges = this.count_edges;
                return(clone);
            }
コード例 #2
0
        public IUndirectedGraphInstance <V, E, int, IEdgeInstance <V, int> > newInstance(int size)
        {
            IDataContainerEInstance <V, E, int, IEdgeInstance <V, int> > dc = DataContainer.DataContainerEInstance;

            dc.newDataSet(size);
            IGraphHelperE <V, E, int, IEdgeInstance <V, int> > h = new IGraphHelperEImpl <V, E, int, IEdgeInstance <V, int> >(dc);

            this.graphInstanceT = new GraphInstanceImpl <V, E, int, IEdgeInstance <V, int> > (h);
            return((IUndirectedGraphInstance <V, E, int, IEdgeInstance <V, int> >) this.graphInstanceT);
        }
コード例 #3
0
        public IUndirectedGraphInstance <V, E, TV, TE> newInstanceT <TV, TE> (TE e, int size)  where TE : IEdgeInstance <V, TV>
        {
            IDataContainerEInstance <V, E, TV, TE> dc = DataContainer.InstanceTFactory <TV, TE>(e);

            dc.newDataSet(size);
            IGraphHelperE <V, E, TV, TE> h = new IGraphHelperEImpl <V, E, TV, TE>(dc);

            this.graphInstanceT = new GraphInstanceImpl <V, E, TV, TE> (h);
            return((IUndirectedGraphInstance <V, E, TV, TE>) this.graphInstanceT);
        }
コード例 #4
0
        public IDirectedGraphInstance <V, E, int, IEdgeInstance <V, int> > newInstance(int size)
        {
            IDataContainerEInstance <V, E, int, IEdgeInstance <V, int> > dc = DataContainer.DataContainerEInstance;         //e.Source, e.Target, 1.0f);

            dc.newDataSet(size);
            IGraphHelperE <V, E, int, IEdgeInstance <V, int> > h = new IGraphHelperEImpl <V, E, int, IEdgeInstance <V, int> >(dc);

            this.graphInstanceT = new IDirectedGraphEInstanceImpl <V, E, int, IEdgeInstance <V, int> > (h);
            return((IDirectedGraphInstance <V, E, int, IEdgeInstance <V, int> >) this.graphInstanceT);
        }