digraph G { initial[label="", shape="circle", xlabel="peer-push-credit"]; pending_download[label="pending(download)"]; pending_user[label="dialog", shape="box"]; pending_merge[label="merge"]; pending_merge_kyc[label="merge-kyc"]; pending_withdraw[label="withdraw"]; pending_withdraw_kyc[label="withdraw-kyc"]; pending_withdraw_aml[label="withdraw-aml"]; subgraph { rank=same; pending_merge; pending_withdraw_kyc; pending_withdraw_aml; } done[label="done", shape="box"]; initial->pending_download; pending_download->pending_user [color=green]; pending_user->pending_merge [color="blue", label="OK"]; pending_merge->pending_withdraw [color=green]; pending_merge->pending_merge_kyc [color=red]; pending_merge_kyc->pending_merge [color="green"]; pending_withdraw->pending_withdraw_kyc [color=red]; pending_withdraw->pending_withdraw_aml [color=red]; pending_withdraw->done [color=green]; pending_withdraw_kyc->pending_withdraw [color="green"]; pending_withdraw_aml->pending_withdraw [color="green"]; }