src/ADT/Graph/EdgeSet.php
private function getEdgeIndex( $sourceNode, $targetNode )
	{
		for( $i=0; $i<sizeof( $this->edges ); $i++ )
		{
			$edge = $this->edges[$i];
			$isSource = $edge->getSourceNode() == $sourceNode;
			$isTarget = $edge->getTargetNode() == $targetNode;
			if( $isSource && $isTarget )
				return $i;
		}
		return -1;
	}
private function getEdgeIndex( $sourceNode, $targetNode )
	{
		for( $i=0; $i<sizeof( $this->edges ); $i++ )
		{
			$edge = $this->edges[$i];
			$isSource = $edge->getSourceNode() == $sourceNode;
			$isTarget = $edge->getTargetNode() == $targetNode;
			if( $isSource && $isTarget )
				return $i;
		}
		return -1;
	}
private function getEdgeIndex ( $ sourceNode , $ targetNode ) { for ( $ i = 0 ; $ i < sizeof ( $ this -> edges ) ; $ i ++ ) { $ edge = $ this -> edges [ $ i ] ; $ isSource = $ edge -> getSourceNode ( ) == $ sourceNode ; $ isTarget = $ edge -> getTargetNode ( ) == $ targetNode ; if ( $ isSource && $ isTarget ) return $ i ; } return - 1 ; }
Returns Index of an Edge in this EdgeSet.
@access		private
@param		ADT_Graph_Node		$sourceNode		Source Node of this Edge
@param		ADT_Graph_Node		$targetNode		Target Node of this Edge
@return 	int
Returns Index of an Edge in this EdgeSet .