Skip to content
Snippets Groups Projects
Commit 15ce141f authored by Pedro Pablo Cardona Arroyave's avatar Pedro Pablo Cardona Arroyave
Browse files

Get Node number by name was added

parent 84cd0f78
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -262,7 +262,12 @@ class Graph{ ...@@ -262,7 +262,12 @@ class Graph{
return listOfPlaces; return listOfPlaces;
} }
public int getNodeNumberByName(String name){
for( Node node: nodes){
if (node.getName().equalsIgnoreCase(name)) return node.getNumber();
}
return -1;
}
} }
class Utils{ class Utils{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment