class_docstr: Tests for :func:`networkx.generators.lattice.triangular_lattice_graph`
docstr: Tests for creating a directed triangular lattice.
docstr_tok: ["Tests","for","creating","a","directed","triangular","lattice","."]
code: def test_directed(self):
      """Tests for creating a directed triangular lattice."""
      G = nx.triangular_lattice_graph(3, 4, create_using=nx.Graph())
      H = nx.triangular_lattice_graph(3, 4, create_using=nx.DiGraph())
      assert H.is_directed()
      for u, v in H.edges():
          assert v[1] >= u[1]
          if v[1] == u[1]:
              assert v[0] > 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 TestTriangularLatticeGraph obj's underlying member method code with example usage: obj.test_directed() without return types