Esempio n. 1
0
 GraphLayoutEngine(IGraphLayoutSpec <TNode, TTransition> spec, IGraphLayoutInfo <TNode, TTransition> info, Graph <TNode, TTransition> graph)
 {
     _spec    = spec;
     _info    = info;
     _builder = CreateGraph(graph);
     _graph   = _builder.Graph;
 }
Esempio n. 2
0
 public static void Calculate(IGraphLayoutSpec <TNode, TTransition> spec, IGraphLayoutInfo <TNode, TTransition> info, Graph <TNode, TTransition> graph)
 {
     if (graph.StartStates.Count > 0)
     {
         new GraphLayoutEngine <TNode, TTransition>(spec, info, graph).CalculateCore();
     }
 }