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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started