comment
This commit is contained in:
parent
1a26a2e516
commit
05d002f3df
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ func (d dag) addVertex(v Drawer) {
|
|||
}
|
||||
}
|
||||
|
||||
// removeVertex removes all in and out edges associated with v in O(degree(v)).
|
||||
// removeVertex removes v, and all edges associated with v, in O(degree(v)).
|
||||
func (d dag) removeVertex(v Drawer) {
|
||||
for u := range d[v].in {
|
||||
delete(d[u].out, v)
|
||||
|
|
Loading…
Reference in a new issue