n>graph algorithms