Skip to content

A Java graphical user interface that demonstrates some of the properties and algorithms of the graph data type.

Notifications You must be signed in to change notification settings

danielrand/Graph-GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Graph-GUI

A Java graphical user interface that demonstrates some of the properties and algorithms of the graph data type. You can add and remove edges and vertices, as well as move vertices around to make the graph more easily legible. Additional features include adding all edges automatically, as well as highlighting the seperate connected components of the graph as well as the cut vertices.

How to use:

Adding vertices:

Select "Add Vertex" and click on the screen wherever you would like to place a vertex.

Adding edges:

Select "Add Edges" and select a vertex to be the first endpoint of an edge. Once selected, the vertex will be highlighted. To draw edges, click on as many vertices as desired. in order to connect them with the initial vertex. To deselect a vertex, simply click again on the selected vertex.

Removing vertices and their associated edges:

Select "Remove Vertex" and click on a vertex.

Removing edges:

Select "Remove Edge" and click on an edge.

Moving vertices:

Click on a vertex to select it to be moved. Then, click anywhere on the screen to move the vertex to that location.

Adding all edges:

Click "Add All Edges" in order to completely connect the graph.

Showing connected components:

Click "Connected Components" and the connected components of the graph will be highlighted in different colors.

Showing cut vertices:

Click "Show Cut Vetices" and all of the cut vertices will be highlighted.

About

A Java graphical user interface that demonstrates some of the properties and algorithms of the graph data type.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages