@see ptolemy.graph.analysis.CycleExistenceAnalysis @since Ptolemy II 4.0 @Pt.ProposedRating Red (shahrooz) @Pt.AcceptedRating Red (ssb) @author Shahrooz Shahparnia @version $Id: CycleExistenceAnalyzer.java,v 1.9 2005/07/08 19:59:03 cxh Exp $
165166167168169170171172173174175176
*/ public boolean valid() { boolean result = false; if (graph() instanceof DirectedGraph) { CycleExistenceAnalyzer analyzer = new FloydWarshallCycleExistenceStrategy( graph()); result = !analyzer.hasCycle(); } return result; }
144145146147148149150151152153154155
*/ public boolean valid() { boolean result = false; if (graph() instanceof DirectedGraph) { CycleExistenceAnalyzer analyzer = new FloydWarshallCycleExistenceStrategy( graph()); result = analyzer.hasCycle(); } return result; }
116117118119120121122123124125126127