pgraph: test: Added tests for DeleteEdge

This commit is contained in:
AdnanLFC
2017-07-28 02:02:22 +02:00
parent 74e04e81d5
commit db6972638d
2 changed files with 81 additions and 1 deletions

View File

@@ -142,7 +142,6 @@ func (g *Graph) AddEdge(v1, v2 Vertex, e Edge) {
}
// DeleteEdge deletes a particular edge from the graph.
// FIXME: add test cases
func (g *Graph) DeleteEdge(e Edge) {
for v1 := range g.adjacency {
for v2, edge := range g.adjacency[v1] {