public virtual void Add(string from, string to)
{
var graph = GetGraph(from, to);
if (graph != null)
{
graph.AddDependency(from, to);
SetGraph(from, graph);
SetGraph(to, graph);
return;
}
var newGraph = new DependencyGraph();
newGraph.AddDependency(from, to);
_graphsDictionary.Add(from, newGraph);
_graphsDictionary.Add(to, newGraph);
_graphs.Add(newGraph);
}