Ejemplo n.º 1
0
        private void initLink(node source, 
                              node destination, 
                              truthvalue weight,
                              int linkType)
        {
            SetAtomType("link");
            SetFlag(atom.FLAG_IS_LINK);

            // set the link properties
            AddToIncomingSet(source);
            AddToOutgoingSet(destination);
            atom_value = weight;

            // update the node links
            source.AddOutgoingLink(this);
            destination.AddIncomingLink(this);

            link_type = (byte)linkType;
        }