internal SemLink(SemGraph gr, SemObject src, SemObject tgt) { Graph = gr; m_Source = src; m_Target = tgt; src.LinksFrom.Add(this); tgt.LinksTo.Add(this); }
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); } }
public SemObject(SemGraph graph) { Graph = graph; }