code: def testIncidentFilteringByNames(self):
      g = Graph.Lattice([10, 10], circular=False)
      vs = (0, 1, 10, 11)
      g.vs[vs]["name"] = ["A", "B", "C", "D"]
  
      vs2 = (11, 0, 24)
      g.vs[24]["name"] = "X"
  
      vs3 = sorted(set(vs).intersection(set(vs2)))
  
      es = g.es.select(_incident=("A", "B", "C", "D"))
      self.assertEqual(8, len(es))
      self.assertTrue(
          all((e.source in vs or e.target in vs) for e in es)
      )
      self.assert_edges_unique_in(es)
  
      es_filtered = es.select(_incident=("D", "A", "X"))
      self.assertEqual(6, len(es_filtered))
      self.assertTrue(
          all((e.source in vs3 or e.target in vs3) for e in es_filtered)
      )
      self.assert_edges_unique_in(es_filtered)
  
      es_filtered = es_filtered.select(_from="A")
      self.assertEqual(2, len(es_filtered))
      self.assertTrue(
          all((e.source == 0 or e.target == 0) for e in es_filtered)
      )
      self.assert_edges_unique_in(es_filtered)
  
imports: import unittest
  from igraph import Graph, Edge, EdgeSeq, VertexSeq
  from .utils import is_pypy
label_desc: Use image node_id 23 for calling the EdgeSeqTests obj's underlying member method code with example usage: obj.testIncidentFilteringByNames() without return types