求任意两个顶点之间所有联系的图算法
If I have the following records: A, B, C, D, E and the following represents the connections: (A,B),(A,C),(B,A),(B,D),(B,E),(B,F),(C,A),(C,E), (C,F),(D,B),(E,C),(E,F),(F,B),(F,C),(F,E) [where (A,B) means record A connects to record B]
All paths connecting B to E: B->E B->F->E B->F->C->E B->A->C->E B->A->C->F->E
千万里不及你
杨__羊羊
相关分类