Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

example: this project is in Java JDK 8 or Intellij Feature 1: Parse a DOT graph file to create a graph (20 points) - Accept

example:

image text in transcribedimage text in transcribedimage text in transcribed

this project is in Java JDK 8 or Intellij

Feature 1: Parse a DOT graph file to create a graph (20 points) - Accept a DOT graph file and create a directed graph object (define your own graph class or use the graph class in your chosen libraries) - API: parseGraph(String filepath) - Output the number of nodes, the label of the nodes, the number of edges, the nodes and the edge direction of edges (e.g., a > b) - API for printing a graph: toString() - API for output to file: outputGraph(String filepath) Feature 2: Adding and removing nodes from the imported graph (20 points) - Provide APIs to add or remove a node - Add a node and check of duplicate labels: addNode(String label) - Remove a node: removeNode(String label) - Provide APIs to add or remove a list of nodes - Add a list of nodes: addNodes(String[] label) - Remove a list of nodes: removeNodes(String[] label) o Feature 3: Adding and removing edges from the imported graph (20 points) - Provide APIs to add or remove an edge - Add an edge and check of duplicate edges: addEdge(String srcLabel, String dstLabel) - Remove an edge: removeEdge(String srcLabel, String dstLabel) - Feature 4: Output the imported graph into a DOT file or graphics - Provide API to output the imported graph into a DOT file - API: outputDOTGraph(String path) - Provide API to output the imported graph into a graphics - API: outputGraphics(String path, String format) - Supported format: at least for jpg and png 0 Write unit tests for each feature ( 20 points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions