lang: funcs: dage: Add a Graph method to improve the API
This also adds it to the GraphAPI so that users of it can pull out a graph when needed. It's not likely to be used by the dage engine consumers.
This commit is contained in:
@@ -262,6 +262,9 @@ type GraphAPI interface {
|
||||
HasVertex(Func) bool
|
||||
FindEdge(Func, Func) *FuncEdge
|
||||
LookupEdge(*FuncEdge) (Func, Func, bool)
|
||||
|
||||
// Graph returns a copy of the current graph.
|
||||
Graph() *pgraph.Graph
|
||||
}
|
||||
|
||||
// Txn is the interface that the engine graph API makes available so that
|
||||
|
||||
Reference in New Issue
Block a user