Linux.com

another cool trick for GraphViz:

Posted by: Administrator on November 18, 2005 03:08 PM
You can share graph sources on the Web. For example, here's the GraphViz source for the TCP state machine:

digraph G {

    subgraph P {

            label = "passive close";

        CLOSE_WAIT -> LAST_ACK;

    }

    subgraph A {

            label = "active close";

        FIN_WAIT_1 -> FIN_WAIT_2 -> TIME_WAIT;

        FIN_WAIT_1 -> CLOSING -> TIME_WAIT;

        FIN_WAIT_1 -> TIME_WAIT;

    }

    CLOSED -> LISTEN -> SYN_SENT -> ESTABLISHED -> FIN_WAIT_1;

    CLOSED -> SYN_SENT -> CLOSED;

    LISTEN -> SYN_RCVD -> LISTEN;

    SYN_SENT -> SYN_RCVD -> FIN_WAIT_1;

    SYN_RCVD -> ESTABLISHED -> CLOSE_WAIT;

    TIME_WAIT -> CLOSED;

    LAST_ACK -> CLOSED;
}

#

Return to Create relationship diagrams with Graphviz