/* --------------------------------------------------------------------

Copyright (c) 1996 by Christopher R. Waterson. All rights reserved.

Permission to use, copy, modify, and distribute this software
and its documentation for NON-COMMERCIAL purposes and without
fee is hereby granted provided that this copyright notice
appears in all copies.

$Id: GraphArc.java 1.1 1996/06/19 01:42:57 waterson Exp $

File:		GraphArc.java
Synopsis:	An arc in a graph
Created:	1996/06/18 waterson
Modified:	$Date: 1996/06/19 01:42:57 $ $Author: waterson $

-------------------------------------------------------------------- */


/**
 * A directed arc in a graph
 */

public class GraphArc
{
	/**
	 * The node in the graph from which this arc extends
	 */

	Object m_from;


	/**
	 * The node in the graph to which this arc extends
	 */

	Object m_to;


	/**
	 * Create a new arc extending from the specified node to 
	 * the specified node
	 */

	public GraphArc(Object from, Object to) {
		m_from = from;
		m_to = to;
	}


	/**
	 * Return the node from which the arc extends
	 */

	public Object from() {
		return m_from;
	}


	/**
	 * Return the node to which the arc extends
	 */

	public Object to() {
		return m_to;
	}
}



