Reduce graph.Iterator method names
This commit is contained in:
parent
e4fb5d2bb8
commit
8576f66d20
21 changed files with 115 additions and 98 deletions
|
|
@ -148,8 +148,8 @@ func (it *Fixed) Size() (int64, bool) {
|
|||
|
||||
// As we right now have to scan the entire list, Next and Check are linear with the
|
||||
// size. However, a better data structure could remove these limits.
|
||||
func (it *Fixed) GetStats() *graph.IteratorStats {
|
||||
return &graph.IteratorStats{
|
||||
func (it *Fixed) Stats() graph.IteratorStats {
|
||||
return graph.IteratorStats{
|
||||
CheckCost: int64(len(it.values)),
|
||||
NextCost: int64(len(it.values)),
|
||||
Size: int64(len(it.values)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue