WarmtenetwerkBEP

20 Reputation

0 Badges

0 years, 179 days

MaplePrimes Activity


These are questions asked by WarmtenetwerkBEP

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

ME:=member(i,L2):
print(ME):

od: 

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

I would like to extract the unique values of a few sets in a list (L1) and insert them in another list (L2) without the sets.

L1:=[{3,5},{5,4}]:

L2:=[3,5,4]:

Could anyone help me with a bit of code so this works for all values in sets in a list?

 

Page 1 of 1