Esempio n. 1
0
        public void AddReference(int sobj, int tobj, int rref)
        {
            int rcount;

            if (!sourceNodes.TryGetValue(sobj, out rcount))
            {
                sourceNodes [sobj] = rref;
                sourceCount++;
            }
            if (!targetNodes.TryGetValue(tobj, out rcount))
            {
                targetNodes [tobj] = 0;
                targetCount++;
            }
            if (!graph.RootRefItemVisited(this))
            {
                rootRefCount++;
            }
            if (!graph.RootRefItemVisited(target))
            {
                target.rootRefCount++;
            }
        }