Added exception for networks that are not DAG
Updated the example in the README file