Fixed scan-1 for directed graphs and mode="all" (#18).