Added code to properly get node color, edge color and edge width.