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); }
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); }
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); }
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); }