Ejemplo n.º 1
0
        /**
         * Constructs a Node with a specific ID
         * @param id the ID of the Node
         */
        public NodeImpl(string id)
        {
            Contract.Requires(id != null, "ID cannot be null.");
            Contract.Requires(id.Trim().Length > 0, "ID cannot be blank.");

            this.id            = id;
            this.nodes         = new List <Node>();
            this.edges         = new List <Edge>();
            this.parentForList = new List <Node>();
            this.shape         = new NodeShapeImpl();
        }
Ejemplo n.º 2
0
 public Node clearShape()
 {
     shape = null;
     return(this);
 }