public GraphEdge(GraphNode source, GraphNode target, EdgeRelation relation, string label, bool directed) { this._metadata = new List <MetaData>(); this._source = source; this._target = target; this._relation = relation; this._label = label; this._directed = directed; }
public Vertex(int x, int y, Vertex prevoius, Vertex next, Control parent) { PictureBox = new PictureBox(); PictureBox.Width = PictureBox.Height = 9; PictureBox.BackColor = Color.Red; PictureBox.Location = new Point(x, y); PictureBox.Parent = parent; PictureBox.Visible = true; PictureBox.Tag = this; PreviousVertex = prevoius; NextVertex = next; Relation = null; }
public void SetRelationData(EdgeRelation type, Edge edge, int id) { RelationType = type; RelationEdge = edge; RelationId = id; }
public RelationInfo(Edge e1, Edge e2, EdgeRelation type) { E1 = e1; E2 = e2; Type = type; }