/* * Copyright 2009 Wishnu Prasetya. * * You can redistribute and/or modify this class under * the terms of the GNU General Public License (GPL) as published by the * Free Software Foundation; either version 3 of the License, or any * later version. */ package Sequenic.Graph; import java.io.Serializable; import java.util.* ; /** * Representing a node in a graph. * * @author Wishnu Prasetya * */ public class Vertex implements Serializable { private static final long serialVersionUID = 1L; /** * The node's id. */ public int id; public Vertex(){ super() ; } public List parents = new LinkedList() ; public List children = new LinkedList() ; @Override public String toString() { return Integer.toString(id) ; } }