And then after a time, you'll see that it was written to a file and so
it's written into the folder data/, it's actually maps/myucsd.map.
So after the application reports that it's saved that data file,
the place you'll find it is in your maps folder.
So you may have to go over here in your clips and
right click on maps, you will have to do this, and click Refresh.
And then you'll see the file that you just saved appear right here.
So here it is.
However, this is not yet suitable for
loading into that graph visualization tool that I told you about.
So what you'll do next, is you'll go back into the main method for graph.java, and
you can see that there are these calls at the top.
GraphLoader.createIntersectionsFile and then there are some file names.
And what I'm gonna do is I'm gonna change these file names to be the path of that
data file I just saved.
So maps/myucsd.map.
And then this is the destination file so, data/intersections
/myuscd.intersection and then I don't want the .map.
So just myuscd.intersections.
And I'll get rid of these two lines because I don't really need them and
then I can go ahead and save that and run it again.
And if I run this what I'm going to see is I'll see in just a second.
So I run this.
There's some output that will help you with de-bugging.
But now if I go into this intersections file and
I refresh it you can see that myucd.intersections has appeared.
It's this file that I can load into that into that visualization application.
So I select all of these points, I go back over here,
to the viewer, I click import Data, I paste in all that data, and I import.
And lo and behold, I can see this data that I just saved.
Now, it wasn't a very large region that I just saved, and so if I go back over here
and look at this region, there are relatively few intersections.
So, there's this, this, this intersection.
Yeah, so, there's very, very few intersections in
that file that I just saved, so I see a very, very small graph, but
you're welcome to download larger graphs we recoomend that if they're not too big.
We recommend neighborhood size or small city size.
Otherwise, the files will be very, very large, and take a long time to download.
But that's the process for
how you can use this visualization tool to visualize your custom data.
So it's pretty cool stuff, and we encourage you to play around with that.
But for the moment, let's finish walking through the project.
So that's the end of part one, and again, this walkthrough was very long but
the actual work you're going to do is not very long.
When you're all done and you think your file is working correctly,
your method is working correctly, you will zip up Graph.java,
GraphAdjList.java, and GraphAdjMatrix.java.
So, GraphAdjList.java and GraphAdjMatrix.java, and
submit this zip file for part one of the assignment.
We'll run some tests on your code to make sure it's correct, and if it's not,
you're gonna find some files in the starter code.
And you'll see a file called DegreeGrader.java in the basic graph
package.
That is our part one grader, and you can run that to see what went wrong.