package com.graph; public class Node { int value; Node next; public Node(int value,Node next) { this.value=value; this.next=next; } }