public IUndirectedGraphInstance <V, E, int, IEdgeInstance <V, int> > newInstance(int size) { IDataContainerKVInstance <V, E, int, IEdgeInstance <V, int> > dc = DataContainer.DataContainerKVInstance; dc.newDataSet(size); IGraphHelperKV <V, E, int, IEdgeInstance <V, int> > h = new IGraphHelperKVImpl <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); }
public IUndirectedGraphInstance <V, E, TV, TE> newInstanceT <TV, TE> (TE e, int size) where TE : IEdgeInstance <V, TV> { IDataContainerKVInstance <V, E, TV, TE> dc = DataContainer.InstanceTFactory <TV, TE>(e); dc.newDataSet(size); IGraphHelperKV <V, E, TV, TE> h = new IGraphHelperKVImpl <V, E, TV, TE>(dc); this.graphInstanceT = new GraphInstanceImpl <V, E, TV, TE> (h); return((IUndirectedGraphInstance <V, E, TV, TE>) this.graphInstanceT); }