class_docstr: Tests for :func:`networkx.generators.lattice.hexagonal_lattice_graph`
docstr: Tests for creating a directed hexagonal lattice.
docstr_tok: ["Tests","for","creating","a","directed","hexagonal","lattice","."]
code: def test_directed(self):
      """Tests for creating a directed hexagonal lattice."""
      G = nx.hexagonal_lattice_graph(3, 5, create_using=nx.Graph())
      H = nx.hexagonal_lattice_graph(3, 5, create_using=nx.DiGraph())
      assert H.is_directed()
      pos = nx.get_node_attributes(H, "pos")
      for u, v in H.edges():
          assert pos[v][1] >= pos[u][1]
          if pos[v][1] == pos[u][1]:
              assert pos[v][0] > pos[u][0]
  
imports: from itertools import product
  import pytest
  import networkx
  from networkx.utils import edges_equal
label_desc: Use image node_id 2 for calling the TestHexagonalLatticeGraph obj's underlying member method code with example usage: obj.test_directed() without return types