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); }
public RelationArc(SemanticGraph graph, int tailId, int id, int headId) : base(graph, graph.GetConceptNameById(tailId), graph.GetConceptNameById(headId)) { this.Id = id; }
public RelationArc(SemanticGraph graph, string tailName, int id, string headName) : base(graph, tailName, headName) { this.Id = id; }
public override object Clone() { SemanticGraph s = new SemanticGraph(); this.CopyTo(s); return s; }
public ConceptVertex(SemanticGraph graph, int id, string name) : base(graph, name) { this.Id = id; }
public SemanticNetwork(SemanticGraph graph) { this.Graph = graph; }