/// <summary> Returns a shallow copy of this graph instance. Neither edges nor /// vertices are cloned. /// /// </summary> /// <returns> a shallow copy of this set. /// /// </returns> /// <throws> RuntimeException </throws> /// <summary> /// </summary> /// <seealso cref="java.lang.Object.clone()"> /// </seealso> public virtual System.Object Clone() { try { AbstractBaseGraph newGraph = (AbstractBaseGraph)this.MemberwiseClone(); newGraph.m_vertexMap = new SupportClass.HashSetSupport(); newGraph.m_edgeSet = new SupportClass.HashSetSupport(); newGraph.m_factoryEdgeClass = this.m_factoryEdgeClass; newGraph.m_edgeFactory = this.m_edgeFactory; newGraph.m_unmodifiableEdgeSet = null; newGraph.m_unmodifiableVertexSet = null; // NOTE: it's important for this to happen in an object // method so that the new inner class instance gets associated with // the right outer class instance newGraph.m_specifics = newGraph.createSpecifics(); GraphHelper.addGraph(newGraph, this); return(newGraph); } //UPGRADE_NOTE: Exception 'java.lang.CloneNotSupportedException' was converted to 'System.Exception' which has different behavior. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1100'" catch (System.Exception e) { SupportClass.WriteStackTrace(e, Console.Error); throw new System.SystemException(); } }
private void InitBlock(AbstractBaseGraph enclosingInstance) { this.enclosingInstance = enclosingInstance; }
public DirectedSpecifics(AbstractBaseGraph enclosingInstance) { InitBlock(enclosingInstance); }