added graph-specific error code
issue #730: initial implementation of A*