Question: GraphTheory: True/false-statement comparing list of edges with a list of vertices

Suppose there is a list with edges (L1): [{3,5},{4,3},{4,6},{3,2},{2,6}] and a list with vertices (L2): [1,5,4].

I would like to get a true-statement when a number of L2 appears in one of the edges of L1.

I tried the following:

for i in L1 do



This only gives false-statements. Could anyone help me?

Please Wait...