-
- Re-implement the Social Network in Lab1
要求我们基于Poetic Walks中定义的Graph<L>及其两种实现(本人使用的是ConcreteVerticesGraph<L>),实现Lab1中Social NetWorek中的各种功能,并且尽可能复用ConcreteVerticesGraph<L>中已经实现的方法,然后运行提供的main()和执行Lab1中的Junit测试用例,使之正常运行。。
-
-
- FriendshipGraph类
-
1.FriendshipGraph():构造方法,创建一张ConcreteVerticesGraph空图。
2.addVertex(Person person):调用ConcreteVerticesGraph.add方法直接向图中添加。
3.addEdge(Person person1, Person person2) ÿ