Convert attributes of digraph and nodes