Esempio n. 1
0
            private Node BuildGraph(Evaluations evals, Evaluation eval, Hashtable adjlists)
            {
                //Create node in graph if not there
                Node enode = new Node(eval, false);
                if (!adjlists.ContainsKey(enode))
                    adjlists.Add(enode, new ArrayList());

                //Create edges
                Evaluation.EvaluationList deps = evals.GetDependencies(eval.ID);
                foreach (Evaluation dep in deps) {

                    //Get node in graph
                    Node dnode = BuildGraph(evals, dep, adjlists);

                    //Create edge
                    ((ArrayList)adjlists[enode]).Add(dnode);
                }

                return enode;
            }
Esempio n. 2
0
 public Node(Evaluation eval, bool marked)
 {
     m_eval = eval; m_marked = marked;
 }
Esempio n. 3
0
 public DependencyGraph(Evaluation eval, AuthorizedIdent ident)
 {
     m_eval = eval; m_ident = ident;
 }