sdboyer / gogl

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

Remove edge type-specific enumerators #10

Closed sdboyer closed 10 years ago

sdboyer commented 10 years ago

it's really not necessary to have separate methods for enumerating each of the different edge types. EachEdge(func (Edge)) is sufficient; the caller can make a type assertion if needed, as they know the edge types they're working with.