updated CGraph
main contains test
first impl done
progtest ifs