package { public class actionscript_graph_basic_Relation { private var fromID:String; //Who makes the relation private var toID:String; //To whom is related //Creates a relation from fromID to toID public function actionscript_graph_basic_Relation(fromID:String, toID: String): void { this.fromID = fromID; this.toID = toID; } public function getFromID():String { //Return the origin of the relation return fromID; } public function setFromID(fromID:String):void { //Set the origin of the relation this.fromID=fromID; } public function getToID():String { //Return the destination of the relation return toID; } public function setToID(toID:String):void { //Set the destination of the relation this.toID=toID; } } }