Created
October 7, 2014 18:09
-
-
Save digorithm/b907b2356e0345f4dd25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package GraphModels; | |
/** | |
* | |
* @author rodrigo | |
*/ | |
public class Vertex { | |
/* This Data Structure will be capable to represent a Vertex, | |
* which is a Node that will be used on a graph | |
*/ | |
public String id; | |
public String name; | |
public boolean visited = false; | |
public Vertex(String id, String name) { | |
this.id = id; | |
this.name = name; | |
} | |
public String getId() { | |
return id; | |
} | |
public String getName() { | |
return name; | |
} | |
@Override | |
public String toString() { | |
return name; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment