public bool Equals(EdgeAction <T> other) { if (other == null) { return(false); } else { bool states_equal = FromState.Equals(other.FromState) && ToState.Equals(other.ToState); bool costs_equal = Cost.Equals(other.Cost); return(states_equal && costs_equal); } }
public override bool Equals(object other) { EdgeAction <T> EdgeVertex = other as EdgeAction <T>; return(this.Equals(EdgeVertex)); }