Custom digraph rules