sdboyer / gogl

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

Consider using some code generation #8

Open sdboyer opened 10 years ago

sdboyer commented 10 years ago

the copy/paste that is Labeled and Data from Weighted has made it pretty clear that there's a need for either better abstraction and reuse between the graphs implementations, or some approach to code generation that allows these permutations to be written out automatically.

certainly the test system is amenable to such code generation, as it's designed to test behavioral correctness as a product of the implemented graph interfaces.