예제 #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);
 }
예제 #3
0
 public RelationArc(SemanticGraph graph, int tailId, int id, int headId)
     : base(graph, graph.GetConceptNameById(tailId), graph.GetConceptNameById(headId))
 {
     this.Id = id;
 }
예제 #4
0
 public RelationArc(SemanticGraph graph, string tailName, int id, string headName)
     : base(graph, tailName, headName)
 {
     this.Id = id;
 }
예제 #5
0
        public override object Clone()
        {
            SemanticGraph s = new SemanticGraph();

            this.CopyTo(s);

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