예제 #1
0
        PopulateWithRoots <TItem, TEdge, TSourceItem, TSourceEdge> (
            this SubGraph <TItem, TEdge> subGraph)
            where TEdge : IEdge <TItem>, TItem where TSourceEdge : IEdge <TSourceItem>, TSourceItem
        {
            var source = subGraph.Source <TItem, TEdge, TSourceItem, TSourceEdge> ();

            if (source != null)
            {
                foreach (var item in source.Source.FindRoots <TSourceItem, TSourceEdge> (default(TSourceItem)))
                {
                    subGraph.Sink.Add(source.Get(item));
                }
            }
        }
예제 #2
0
 public SubGraphWorker1(SubGraph <TItem, TEdge> subGraph)
 {
     this.SubGraph      = subGraph;
     this.RemoveOrphans = true;
 }