src/ADT/Graph/EdgeSet.php
public function isEdge( $sourceNode, $targetNode )
	{
		foreach( $this->edges as $edge )
		{
			$isSource = $edge->getSourceNode() == $sourceNode;
			$isTarget = $edge->getTargetNode() == $targetNode;
			if( $isSource && $isTarget )
				return TRUE;
		}
		return FALSE;
	}
public function isEdge( $sourceNode, $targetNode )
	{
		foreach( $this->edges as $edge )
		{
			$isSource = $edge->getSourceNode() == $sourceNode;
			$isTarget = $edge->getTargetNode() == $targetNode;
			if( $isSource && $isTarget )
				return TRUE;
		}
		return FALSE;
	}
public function isEdge ( $ sourceNode , $ targetNode ) { foreach ( $ this -> edges as $ edge ) { $ isSource = $ edge -> getSourceNode ( ) == $ sourceNode ; $ isTarget = $ edge -> getTargetNode ( ) == $ targetNode ; if ( $ isSource && $ isTarget ) return TRUE ; } return FALSE ; }
Indicates whether an Edge is existing in this EdgeSet.
@access		public
@param		ADT_Graph_Node		$sourceNode		Source Node of this Edge
@param		ADT_Graph_Node		$targetNode		Target Node of this Edge
@return 	bool
Indicates whether an Edge is existing in this EdgeSet .