Hrily / LibGraph

Graph Library for C++
MIT License
0 stars 1 forks source link

some bug fix #6

Closed Sasasu closed 3 years ago

Sasasu commented 7 years ago
  1. add Edge::operator== to compare two edge

  2. change Graph(Graph&) to Graph(const Graph&)

  3. add Graph::getAdjavencyList() to give more convenient to use.

  4. add Graph::getAdjacencyMatrix() to give more convenient to use.

  5. compile error fix, change set<T,W> getVertices() to set<T,less<W>> getVertices()

  6. fix bug, whe graph contain negative margin, dijkstra may be infinite loop

  7. fix bug, whe vertices.size is zero, bellmanFord may be infinite loop.

5

sbshah97 commented 7 years ago

@Sasasu PR looks good for now!