我有aplhabets列表,我用numpy比较它们 比如在文件1中我有
File 1
a,b,c
c,d,f
File 2
c,d,f
我将file1的每个元素与文件2进行比较,并生成类似
的矩阵0 0 0 (a compares with all of aplhabets in file b)
0 0 0(bcompares with all of aplhabets in file b)
0 0 1(c compares with all of aplhabets in file b)
1 0 0(c compares with all of aplhabets in file b)
0 1 0(d compares with all of aplhabets in file b)
0 0 1(f compares with all of aplhabets in file b)
现在我必须证明从a到d的路径我怎样才能找到路径?