public Graph(){
  roots=new ArrayList<Node>();
  nodes=new ArrayList<Node>();
  string="";
}

public Graph ( ) { roots = new ArrayList < Node > ( ) ; nodes = new ArrayList < Node > ( ) ; string = "" ; }
constructs an empty graph
