Modified:
/trunk/core/pygraph/algorithms/cycles.py
=======================================
--- /trunk/core/pygraph/algorithms/cycles.py Thu Jun 17 17:14:28 2010
+++ /trunk/core/pygraph/algorithms/cycles.py Sun Feb 19 11:45:29 2012
@@ -49,9 +49,9 @@
@return: List of nodes.
"""
- if (type(graph) == graph_class):
+ if (isinstance(graph, graph_class)):
directed = False
- elif (type(graph) == digraph_class):
+ elif (isinstance(graph, digraph_class)):
directed = True
else:
raise InvalidGraphType