- Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNodes.java
More file actions
Latest commit
24 lines (21 loc) · 544 Bytes
/
Copy pathNodes.java
File metadata and controls
24 lines (21 loc) · 544 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* This class is only for the special points for the graphical output of the
* adjacency list
*/
importjava.util.LinkedList;
publicclassNodes {
privateStringidentifier;
privateLinkedList<String> edge = newLinkedList<String>();
publicNodes(Stringidentifier) {
this.identifier = identifier;
}
publicvoidaddEdge(Stringother) {
edge.add(other);
}
publicLinkedList<String> getEdge() {
returnedge;
}
publicStringgetIdentifier() {
returnidentifier;
}
}