(Node... inputs)
| 64 | private static int UNIQUE_ID = 1; |
| 65 | |
| 66 | protected Node(Node... inputs) { |
| 67 | _nid = UNIQUE_ID++; // allocate unique dense ID |
| 68 | _inputs = new ArrayList<>(); |
| 69 | Collections.addAll(_inputs,inputs); |
| 70 | _outputs = new ArrayList<>(); |
| 71 | for( Node n : _inputs ) |
| 72 | if( n != null ) |
| 73 | n.addUse( this ); |
| 74 | } |
| 75 | |
| 76 | // Easy reading label for debugger, e.g. "Add" or "Region" or "EQ" |
| 77 | public abstract String label(); |