/**
	* Edges Class describe edges in graph
	* this class describe edges and indicate connection between A vertex and B vertex
	**/
	
// this Class is a memeber of GCRawData package
package GCRawData;

import java.util.*;

public class Edges 
{
		private LinkedList FromTo;
		private int index = 0;
		
		// constructor
		public Edges() {
			FromTo = new LinkedList();
		}
		
		// add edge to list
		public boolean add(String from, String to) {
			if ( from.equals(to) ) return false;
			if ( FromTo.contains(from+"+"+to) ) return false;
			FromTo.add( new String(from+"+"+to));
			
			return true;
		}
		
		// find edge in Graph
		public boolean find(String from, String to) {
			return ( FromTo.contains(from+"+"+to) )? true : ( FromTo.contains(to+"+"+from) )? true : false;
		}
		
}