Example #1
0
 internal SemLink(SemGraph gr, SemObject src, SemObject tgt)
 {
     Graph    = gr;
     m_Source = src;
     m_Target = tgt;
     src.LinksFrom.Add(this);
     tgt.LinksTo.Add(this);
 }
Example #2
0
 public void MergeWith(SemGraph gr)
 {
     foreach (SemObject o in gr.Objects)
     {
         if (!Objects.Contains(o))
         {
             Objects.Add(o);
             o.Graph = this;
         }
     }
     foreach (SemLink li in gr.Links)
     {
         if (!Links.Contains(li))
             Links.Add(li);
     }
 }
Example #3
0
 public SemObject(SemGraph graph)
 {
     Graph = graph;
 }