public bool Equals(DependencyNodeV2 <T> other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Item.Equals(other.Item)); }
public DependencyGraph(T rootItem, IList <DependencyNodeV2 <T> > nodes) { var rootNode = new DependencyNodeV2 <T>(rootItem); Nodes = TopologicalSort.Sort(rootNode, nodes); }