我需要找到比其他导演更能和诺兰一起拍电影的演员。
“此查询将给我克里斯托弗·诺兰导演的电影”
select P1.PID, P1.Name,
Movie.MID
from Person P1 natural join M_Cast natural
join Movie join M_Director on (Movie.MID = M_Director.MID) join Person P2 on (M_Director.PID = P2.PID) where P2.Name='Christopher Nolan'
答案 0 :(得分:0)
我并没有真正测试它,但是类似的东西应该可以工作:
for (u,v) in G.edges:
d.edge(str(u), str(v), label=str(G[u][v]['weight']))
d.edge(str(v), str(u), label=str(G[v][u]['weight']))