You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not necessarily a feature request, but I'm curious how you would deal with disconnected DAGs, or if this is outside the scope of this library. Currently the library does not enforce the graph to be connected, so I can have multiple disconnected DAGs within one DAG of the library. In this case some functions like DAG.GetRoots become less useful and there seems to be no way to find the roots of a specific vertex.
Do you think something like a func (d *DAG) GetConnectedDAGs() []*DAG or func (d *DAG) GetConnectedDAG(id string) *DAG or func (d *DAG) DeleteDisconnected(id string) or similar would be a good addition to the library?
The text was updated successfully, but these errors were encountered:
This is not necessarily a feature request, but I'm curious how you would deal with disconnected DAGs, or if this is outside the scope of this library. Currently the library does not enforce the graph to be connected, so I can have multiple disconnected DAGs within one DAG of the library. In this case some functions like
DAG.GetRoots
become less useful and there seems to be no way to find the roots of a specific vertex.Do you think something like a
func (d *DAG) GetConnectedDAGs() []*DAG
orfunc (d *DAG) GetConnectedDAG(id string) *DAG
orfunc (d *DAG) DeleteDisconnected(id string)
or similar would be a good addition to the library?The text was updated successfully, but these errors were encountered: