Beispiel #1
0
        public Edge(Air air, EdgeDef def, Node inNode, Node outNode)
            : base(air)
        {
            _edgeDef = def;
            In = inNode;
            Out = outNode;

            In.AddOutEdge(this);
            Out.AddInEdge(this);
        }
Beispiel #2
0
 public Edge CreateEdgeTo(Node node, EdgeDef edgeDefinition)
 {
     return edgeDefinition.CreateEdge(this, node);
 }
Beispiel #3
0
 public EdgeDef CreateEdgeDef(string name)
 {
     EdgeDef edgeDef = new EdgeDef(this, name);
     _edgeDefsByName.Add(edgeDef.Name, edgeDef);
     return edgeDef;
 }