Skip to content

Commit

Permalink
graph/topo: use degeneracyOrdering instead of VertexOrdering for Bron…
Browse files Browse the repository at this point in the history
…Kerbosch
  • Loading branch information
kortschak committed Sep 14, 2017
1 parent c86b608 commit e6a5ea5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph/topo/bron_kerbosch.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ func BronKerbosch(g graph.Undirected) [][]graph.Node {
}
x := make(set.Nodes)
var bk bronKerbosch
order, _ := VertexOrdering(g)
order, _ := degeneracyOrdering(g)
ordered.Reverse(order)
for _, v := range order {
neighbours := g.From(v)
nv := make(set.Nodes, len(neighbours))
Expand Down

0 comments on commit e6a5ea5

Please sign in to comment.