Esempio n. 1
0
        public static void SetDefaultEventHandlers(SemanticGraph graph)
        {
            DirectedGraph.SetDefaultEventHandlers(graph);

            graph.OnAddVertex += new EventHandler<VerticesModifiedEventArgs>(graph.graph_OnAddVertex);
            graph.OnAddEdge += new EventHandler<EdgesModifiedEventArgs>(graph.graph_OnAddEdge);
        }
 public SemanticGraphWrapper(SemanticGraph sGraph)
     : base(sGraph)
 {
     SemanticGraphWrapper.SetDefaultEventHandlers(this);
 }
Esempio n. 3
0
 public RelationArc(SemanticGraph graph, int tailId, int id, int headId)
     : base(graph, graph.GetConceptNameById(tailId), graph.GetConceptNameById(headId))
 {
     this.Id = id;
 }
Esempio n. 4
0
 public RelationArc(SemanticGraph graph, string tailName, int id, string headName)
     : base(graph, tailName, headName)
 {
     this.Id = id;
 }
Esempio n. 5
0
        public override object Clone()
        {
            SemanticGraph s = new SemanticGraph();

            this.CopyTo(s);

            return s;
        }
Esempio n. 6
0
 public ConceptVertex(SemanticGraph graph, int id, string name)
     : base(graph, name)
 {
     this.Id = id;
 }
Esempio n. 7
0
 public SemanticNetwork(SemanticGraph graph)
 {
     this.Graph = graph;
 }