fix comments and add assetion for complete graph