/// <summary> /// Replaces the type of the arc with inherited. /// </summary> /// <param name="origArc">The orig arc.</param> /// <param name="newType">The new type.</param> public void replaceHyperArcWithInheritedType(hyperarc origArc, Type newType) { addHyperArc(origArc.nodes, origArc.name, newType); origArc.copy(hyperarcs.Last()); hyperarcs.Last().DisplayShape = origArc.DisplayShape; removeHyperArc(origArc); }
/// <summary> /// Replaces the type of the arc with inherited. /// </summary> /// <param name="origArc">The orig arc.</param> /// <param name="newType">The new type.</param> public void replaceHyperArcWithInheritedType(hyperarc origArc, Type newType) { var newHa = addHyperArc(origArc.nodes, origArc.name, newType); origArc.copy(newHa); newHa.DisplayShape = origArc.DisplayShape; removeHyperArc(origArc); }