001 // GraphLab Project: http://graphlab.sharif.edu 002 // Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology 003 // Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/ 004 package graphlab.plugins.visualization.treevisualizations; 005 006 import graphlab.graph.graph.VertexModel; 007 008 import java.util.HashSet; 009 010 /** 011 * @author Rouzbeh Ebrahimi 012 */ 013 public class TreeVertex { 014 private VertexModel parent; 015 private HashSet<VertexModel> children; 016 017 public VertexModel getParent() { 018 return parent; 019 } 020 021 public void setParent(VertexModel parent) { 022 this.parent = parent; 023 } 024 025 public HashSet<VertexModel> getChildren() { 026 return children; 027 } 028 029 public void setChildren(HashSet<VertexModel> children) { 030 this.children = children; 031 } 032 }