It’s important project. I need a help. Will give up vote for helping! Please use Java !!!!! Need …
It’s important project. I need a help. Will give up vote for helping! Please use Java !!!!!
Need clearly written java program code and sample output!!!!!!
The popular social network Facebook TM was founded by Mark Zuckerberg and his classmates at Harvard University in 2004. At the time, he was a sophomore studying computer science. Design and implement an application that maintains the data for a simple social network. Each person in the network should have a profile that contains the person’s name, optional image, current status, and a list of friends. Your application should allow a user to join the network, leave the network, create a profile, modify the profile, search for other profiles, and add friends. [Project 16 Chapter 13 – A List Implementation That Uses an Array] Repeat Project above to create a simple social network. Use a graph to track the friend relationships among members of the network. Add a feature to enable people to see a list of their friends’ friends. [Project 9 Chapter 29 – Graph Implementations]
public class UndirectedGraph extends DirectedGraph implements GraphInterface
public boolean addEdge(T begin, T end, double edgeWeight)
return super.addEdge(begin, end, edgeWeight) &&
super.addEdge(end, begin, edgeWeight);
} // end addEdge
public boolean addEdge(T begin, T end)
return this.addEdge(begin, end, 0);
} // end addEdge
public int getNumberOfEdges()
return super.getNumberOfEdges() / 2;
} // end getNumberOfEdges
public StackInterface getTopologicalOrder()
throw new UnsupportedOperationException(“Topological sort illegal in an undirected graph.”);
} // end getTopologicalOrder
} // end UndirectedGraph
Reference: Data Structures and Abstractions with Java, Frank M. Carrano, 4th Edition, Pearson, 2015.
public interface GraphInterface<T> extends BasicGraphInterface<T>,
} // end GraphInterface