Esempio n. 1
0
 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;
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public void SetRelationData(EdgeRelation type, Edge edge, int id)
 {
     RelationType = type;
     RelationEdge = edge;
     RelationId   = id;
 }
Esempio n. 4
0
 public RelationInfo(Edge e1, Edge e2, EdgeRelation type)
 {
     E1   = e1;
     E2   = e2;
     Type = type;
 }