Codes of basic graphs algorithms