Fix silliness in isUndirected