Simplified code for getting node and edge color and edge width.