egeldenhuys / black-fitch

[DEPRECATED] Black-box Unit Tests for Fitchfork practicals and assignments
GNU General Public License v3.0
8 stars 4 forks source link

Assignment 5 Task 1 #55

Closed egeldenhuys closed 7 years ago

egeldenhuys commented 7 years ago

Task 1

Current status

egeldenhuys commented 7 years ago

Notable update: Draw graphs graphs from text files and Graph objects

void graphToImage(Graph g, String graphFile, String imageFile)
void graphFileToImage(String inputFile, String outputFile)

Dependencies

Example usage

GraphUtils.graphToImage(g, "graph.txt", "graph_received.png");
GraphUtils.graphFileToImage("graph.txt", "graph_expected.png");

Output

graph_expected

graph_received

egeldenhuys commented 7 years ago

EDIT: This is DFS based on edges and is not correct for task 1.

output

egeldenhuys commented 7 years ago

Task1: 10/25

Success: numEdges() method
Success: getDegree() method
Failure: depthFirstTraversal() method on a small simple circular graph
Failure: clone() and/or changeLabel() method
Failure: reconstructGraph() method

Success: numEdges() method
Success: getDegree() method
Success: depthFirstTraversal() method on a small simple acyclic graph
Success: clone() and changeLabel() method
Success: reconstructGraph()

Success: getDegree() method
Failure: depthFirstTraversal() method on a medium graph
Failure: clone() and/or changeLabel() method

Success: getDegree() method
Failure: depthFirstTraversal() method on a large graph
Failure: clone() and/or changeLabel() method

Success: getDegree() method
Failure: depthFirstTraversal() method on a large graph
Failure: clone() and/or changeLabel() method
egeldenhuys commented 7 years ago
25/25

Success: numEdges() method
Success: getDegree() method
Success: depthFirstTraversal() method on a small simple circular graph
Success: clone() and changeLabel() method
Success: reconstructGraph()

Success: numEdges() method
Success: getDegree() method
Success: depthFirstTraversal() method on a small simple acyclic graph
Success: clone() and changeLabel() method
Success: reconstructGraph()

Success: getDegree() method
Success: depthFirstTraversal() method on a medium graph
Success: clone() and changeLabel() method

Success: getDegree() method
Success: depthFirstTraversal() method on a large graph
Success: clone() and changeLabel() method

Success: getDegree() method
Success: depthFirstTraversal() method on a large graph
Success: clone() and changeLabel() method