public void CreateLinks()
        {
            //create product B
            var transCount = Storage.StorageRepresentation.Count;

            Graph = new LinksGraph(transCount);
            for (int index = 0; index + 1 < transCount; index++)
            {
                Graph.AddEdge(index, index + 1);
            }
            Graph.AddEdge(transCount, 0);;
        }
Exemple #2
0
        public void CreateLinks()
        {
            //create product B
            var transCount = Storage.StorageRepresentation.Count;
            var graph      = new LinksGraph(transCount);

            for (int indexI = 0; indexI < transCount; indexI++)
            {
                for (int indexJ = 0; indexJ < indexI; indexJ++)
                {
                    graph.AddEdge(indexI, indexJ);
                }
            }
        }