1. extract some dot attrs; 2. complete max-flow, min-cut algo