minor changes
add graph codes