more general  graphlib features. algos not working yet