dean985 / mazewaze

0 stars 1 forks source link

מקרי קצה connect #7

Closed elonezra closed 4 years ago

elonezra commented 4 years ago

1. src == dest

  1. weight < 0
  2. edge already exist
dean985 commented 4 years ago

1

src == dest - that might be possible , waiting for a mail from Yael EDIT: Yael confirmed a Cycle is possible.

2

Constructor of Edge changed. Also NodeData changed in the same way

public Edge(NodeData node, double weight){ this.node = node; this.weight = Math.abs(weight);