soniakeys / graph

Simple and fast graph library
72 stars 7 forks source link

It's getting big for a single package #16

Closed soniakeys closed 8 years ago

soniakeys commented 8 years ago

The number of exported symbols isn't large at all in comparison to some libraries in some other languages. Also, the namespace doesn't seem awkwardly crowded. But it's starting to sprawl in godoc,

It could be split by graph representation. Traditional in some languages, I think.

It could be split by some categorization of algorithms.

A split in a different direction might be to start a "supplemental" package of functions that are trivial to implement, where "trivial" is completely editorial.

The problem is adding methods. Struct embedding is possible, functions instead of methods is possible, a build tag is possible. Tradeoffs everywhere.

soniakeys commented 8 years ago

This will happen when both need and solution are present, maybe never.