Question: In java Create an ADT for a data structure to be used in a social network, the ADT will be called SoNet. Every SoNet contains
In java Create an ADT for a data structure to be used in a social network, the ADT will be called SoNet. Every SoNet contains Persons(nodes) and Friendship Relationships (Edges). Every Person will have the following properties {name, date of birth, gender, url} choose the suitable data types Every Friendship Relationship will have the following properties {an array of two persons, start date, list of interactions} choose the suitable data types SoNet will have the following functionalities: Add a person Add a Relationship Search for a person Search for a relationship The ADT must have an abstract layer and an implementation layer. Create an application layer of at least 10 persons and at least 20 relationships
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
