src/ADT/Graph/DirectedWeighted.php
public function hasCycle()
	{
		if( $this->hasLoop() )
			return true;
		else
		{
			foreach( $this->getNodes() as $node )
				if( $this->isPath($node, $node ) )
					return true;
		}
		return false;
	}
public function hasCycle()
	{
		if( $this->hasLoop() )
			return true;
		else
		{
			foreach( $this->getNodes() as $node )
				if( $this->isPath($node, $node ) )
					return true;
		}
		return false;
	}
public function hasCycle ( ) { if ( $ this -> hasLoop ( ) ) return true ; else { foreach ( $ this -> getNodes ( ) as $ node ) if ( $ this -> isPath ( $ node , $ node ) ) return true ; } return false ; }
Indicates whether Graph has closed sequence of Edges.
@access		public
@return		bool
Indicates whether Graph has closed sequence of Edges .