GraphLayoutEngine(IGraphLayoutSpec <TNode, TTransition> spec, IGraphLayoutInfo <TNode, TTransition> info, Graph <TNode, TTransition> graph) { _spec = spec; _info = info; _builder = CreateGraph(graph); _graph = _builder.Graph; }
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(); } }