public override bool Equals(Object obj) { if (this == obj) { return(true); } if (obj == null) { return(false); } if (!this.GetType().Equals(obj.GetType())) { return(false); } VerticeModel outro = (VerticeModel)obj; if (id == null) { if (outro.id != null) { return(false); } } else if (!id.Equals(outro.id)) { return(false); } return(true); }
public ArestaModel(String id, VerticeModel origem, VerticeModel destino, int peso) { this.id = id; this.origem = origem; this.destino = destino; this.peso = peso; }