Encode graph support