Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.company;
- class Node {
- private int fromVertex;
- private int toVertex;
- private Node next;
- public int getFromVertex() {
- return this.fromVertex;
- }
- public void setFromVertex(final int value) {
- this.fromVertex = value;
- }
- public int getToVertex() {
- return this.toVertex;
- }
- public void setToVertex(final int value) {
- this.toVertex = value;
- }
- public Node getNext() {
- return this.next;
- }
- public void setNext(final Node next) {
- this.next = next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement