Implemented core graph functions