Posted By

wickedhood on 07/01/14


Tagged


Versions (?)

Node


 / Published in: Java
 

node

  1. import java.util.ArrayList;
  2.  
  3. public class Node<T> {
  4. public T element;
  5. public int x=0;
  6. public int y=0;
  7. public ArrayList<Node<T>> children = new ArrayList<>();
  8. boolean visited = false;
  9.  
  10. public Node(T t, int x, int y) {
  11. this.element = t;
  12. this.x = x;
  13. this.y = y;
  14. }
  15. }

Report this snippet  

You need to login to post a comment.