turn test into doctest.
add exemple inputs
allow directed graph
fix test case typo
try to implement constrained multilinear detection