sdboyer / gogl

A graph library in Go
MIT License
77 stars 13 forks source link

Make Order(), Size() opt-opt functions #22

Closed sdboyer closed 10 years ago

sdboyer commented 10 years ago

per the new rule, Order() and Size() don't NEED to be implemented by graphs - only if they have a more efficient way of calculating them than outer code does by iterating through the respective structure.

Most graphs probably still will, but every method removed from an aggregate interface for a good reason is a victory.

sdboyer commented 10 years ago

oh yeah, this was done in a27a3b3