Skip to content

Commit

Permalink
Update JavaCode.md #35
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellMark authored Jul 7, 2023
1 parent db031a8 commit ede67ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Java Code/JavaCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
There are two main files here, the EdgeStorageArrays Class and the GenerateGraphs File which are both used to generate graphs. If you want to generate graphs for yourself, start with the generateGraphs.java File.

## generateGraphs
To generate graphs you can run this code as is as it is already set up with default values. With what is there as it stands, when you run the code the 3 5-graphs will be generated in a readable output that is printed. However, you can increase the number of graphs printed by changing the numVertices variable. The only ones that work currently are 5-8, above or below will either result in no graphs being generated, or the code running for too long. You can uncomment out the different ways of printing graphs or writing to file. Keep in mind that to write to a file you'll need to specify the path in the methods themselves. In addition, the ability to toggle whether or not inverses are generated is right below this at the boolean value keepZeroes. Setting this to true will generate more graphs than without it (except in the 5 vertex case). The output file in JavaCode is from these a run from here, and it shows what a potential output can look like
To generate graphs you can run this code as is as it is already set up with default values. With what is there as it stands, when you run the code the 3 5-graphs will be generated in a readable output that is printed. However, you can increase the number of graphs printed by changing the numVertices variable. The only ones that work currently are 5-8, above or below will either result in no graphs being generated, or the code running for too long. You can uncomment out the different ways of printing graphs or writing to file. Keep in mind that to write to a file you'll need to specify the path in the methods themselves. In addition, the ability to toggle which method is used is right underneath it, with the numbers coresponding to the correct method in the comments above it. If there is any confusion, set it to one for the defualt value. The output file in JavaCode is from these a run from here, and it shows what a potential output can look like
## edgeStorageArrays
This is an array based implementation of edgeStorage, originally it used arraylists, but this version is faster. The original implementation is in Legacy code. This class provides the structure to store a single graph with an array of arrays of arrays. More information can be found in the file itself on how it works and its different methods, but if you're only concerned with running the code you don't need to actually look into it.

0 comments on commit ede67ec

Please sign in to comment.