directed should work pending tests, added a warning message to spectralToDistance