some code about Graph Theory