}
+ /**
+ * Return the position of the association containing
+ * the GNode _g.
+ * @param _g The GNode to be search
+ * @return The position of the association
+ */
+ public int getIdOfAssociation( GNode _g )
+ {
+ int ret = -1 ;
+
+ for( int i = 0 ; i < mapping.size() ; i++ )
+ {
+ if( mapping.get( i ).getGNode().getId() == _g.getId() )
+ {
+ i = ret ;
+ break ;
+ }
+ }
+
+ return ret ;
+ }
+
+
/**
* Return the amount of external tasks dependencies, in cluster point of view.
* @return The amount of external dependencies