/// <summary> /// Creates a new edge that is of the appropriate type. The /// new edge will be a copy of the current edge but with a /// different source and target. /// </summary> /// <param name="source">The source Node</param> /// <param name="target">The target Node</param> /// <returns>a new edge</returns> public override IEdge Copy(INode source, INode target) { //TODO: SHOULD BE UPDATED TO BE A MORE COMPLETE COPY SimilarityDataEdge newEdge = new SimilarityDataEdge(this.weight, source, target, Attributes) { ID = this.ID, Description = this.Description, DisplayValue = this.DisplayValue, MinimumSpringLength = this.minimumSpringLength, MaximumSpringLength = this.maximumSpringLength, MinimumSpringStiffness = this.minimumSpringStiffness, MaximumSpringStiffness = this.maximumSpringStiffness }; return(newEdge); }
/// <summary> /// Create a new instance of the Berico.LinkAnalysis.ViewModel.SimilarityEdgeViewModel /// class using the provided parent edge /// </summary> /// <param name="parentEdge">The parent edge for this edge view model</param> /// <param name="scope">Identifies the scope of this edge view model</param> public SimilarityEdgeViewModel(SimilarityDataEdge parentEdge, string scope) : base(parentEdge, scope) { }
/// <summary> /// Creates a new edge that is of the appropriate type. The /// new edge will be a copy of the current edge but with a /// different source and target. /// </summary> /// <param name="source">The source Node</param> /// <param name="target">The target Node</param> /// <returns>a new edge</returns> public override IEdge Copy(INode source, INode target) { //TODO: SHOULD BE UPDATED TO BE A MORE COMPLETE COPY SimilarityDataEdge newEdge = new SimilarityDataEdge(this.weight, source, target, Attributes) { ID = this.ID, Description = this.Description, DisplayValue = this.DisplayValue, MinimumSpringLength = this.minimumSpringLength, MaximumSpringLength = this.maximumSpringLength, MinimumSpringStiffness = this.minimumSpringStiffness, MaximumSpringStiffness = this.maximumSpringStiffness }; return newEdge; }