Closed liggitt closed 5 years ago
Please send a PR so that we can see what you are doing. Note that the design of the graph packages is such that there is no reason other than convenience to use the simple package provided graphs.
@liggitt If you are still interested in adding this, please send the PR to gonum/gonum.
This is an issue clean-up for the deprecation of this repo.
A space-efficient directed acyclic graph implementation would be very welcome.
I have an implementation of a DAG on top of the simple.Undirected implementation, with
From
andTo
implementations that filter the edges returned based on whether they were from or to the specified node. In benchmarks of large graphs, it resulted in ~30% memory savings over thesimple.Directed
impl, since it didn't have to double-track edges.