/// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Nodes != null)
         {
             hashCode = hashCode * 59 + Nodes.GetHashCode();
         }
         if (NodeComponents != null)
         {
             hashCode = hashCode * 59 + NodeComponents.GetHashCode();
         }
         if (Edges != null)
         {
             hashCode = hashCode * 59 + Edges.GetHashCode();
         }
         if (Extensions != null)
         {
             hashCode = hashCode * 59 + Extensions.GetHashCode();
         }
         return(hashCode);
     }
 }
        /// <summary>
        /// Returns true if ModelFlowChartGraph instances are equal
        /// </summary>
        /// <param name="other">Instance of ModelFlowChartGraph to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ModelFlowChartGraph other)
        {
            if (ReferenceEquals(null, other))
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Nodes == other.Nodes ||
                     Nodes != null &&
                     Nodes.SequenceEqual(other.Nodes)
                     ) &&
                 (
                     NodeComponents == other.NodeComponents ||
                     NodeComponents != null &&
                     NodeComponents.SequenceEqual(other.NodeComponents)
                 ) &&
                 (
                     Edges == other.Edges ||
                     Edges != null &&
                     Edges.SequenceEqual(other.Edges)
                 ) &&
                 (
                     Extensions == other.Extensions ||
                     Extensions != null &&
                     Extensions.SequenceEqual(other.Extensions)
                 ));
        }