added is_directed() functionality