add checks for regular, cubic, disconnected graph
fix non programming errors in files