pgraph: Move the AutoEdges mechanism into the resource package

Remove the pgraph->resource dependency.
This commit is contained in:
James Shubin
2017-05-15 11:37:20 -04:00
parent 1fbe72b52d
commit 11c3a26c23
3 changed files with 20 additions and 20 deletions

View File

@@ -483,8 +483,8 @@ func (obj *Main) Run() error {
oldGraph = newFullGraph // save old graph
G = oldGraph.Copy() // copy to active graph
G.AutoEdges() // add autoedges; modifies the graph
G.AutoGroup() // run autogroup; modifies the graph
resources.AutoEdges(G) // add autoedges; modifies the graph
G.AutoGroup() // run autogroup; modifies the graph
// TODO: do we want to do a transitive reduction?
// FIXME: run a type checker that verifies all the send->recv relationships