(Node... inputs)
| 54 | private static int UNIQUE_ID = 1; |
| 55 | |
| 56 | protected Node(Node... inputs) { |
| 57 | _nid = UNIQUE_ID++; // allocate unique dense ID |
| 58 | _inputs = new ArrayList<>(); |
| 59 | Collections.addAll(_inputs,inputs); |
| 60 | _outputs = new ArrayList<>(); |
| 61 | for( Node n : _inputs ) |
| 62 | if( n != null ) |
| 63 | n.addUse( this ); |
| 64 | } |
| 65 | |
| 66 | // Easy reading label for debugger, e.g. "Add" or "Region" or "EQ" |
| 67 | public abstract String label(); |