writeGraph & setEdgeColor