Exemples GraphViz

Exemple 1

digraph gen {

    fontname = "Bitstream Vera Sans" fontsize = 8
    node [
        fontname = "Bitstream Vera Sans"
        fontsize = 10
        shape = "record"
    ]
    edge [
        fontname = "Bitstream Vera Sans"
        fontsize = 8
        arrowsize="0.7"

        dir = "both"
    ]
    B [
        label = "{B}"
    ]

    A [
        label = "{A}"
    ]

    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    B -> A
}

Exemple 2

digraph gen {
    fontname = "Bitstream Vera Sans" fontsize = 8
    node [
        fontname = "Bitstream Vera Sans"
        fontsize = 10
        shape = "record"
    ]
    edge [
        fontname = "Bitstream Vera Sans"
        fontsize = 8
        arrowsize="0.7"
        dir = "both"
    ]
    B [
        label = "{B}"
    ]

    A [
        label = "{A}"
    ]

    C [
        label = "{C| #name : id}"
    ]

    X [
        label = "{X}"
    ]

    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    B -> A
    edge [arrowhead = "vee", arrowtail = "none" style="solid", headlabel = "b ", taillabel = ""]
    C -> B
    edge [arrowhead = "vee", arrowtail = "none" style="solid", headlabel = "a *", taillabel = ""]
    X -> A
}

Exemple 3

 

digraph gen {
    fontname = "Bitstream Vera Sans" fontsize = 8
    node [
        fontname = "Bitstream Vera Sans"
        fontsize = 10
        shape = "record"
    ]
    edge [
        fontname = "Bitstream Vera Sans"
        fontsize = 8
        arrowsize="0.7"
        dir = "both"
    ]
    Systeme [
        label = "{Systeme| +addClasse() : boolean}"
    ]

    Classe [
        label = "{Classe| #name  :  String\l#classpath  :  String\l#abstraction  :  boolean}"
    ]

    String [
        label = "{String}"
    ]

    Attribut [
        label = "{Attribut| #name : String\l#card0  :  String\l#card1  :  String\l#type  :  Classe\l#visibility : Visibility\l#relationship : Relationship}"
    ]

    ClasseAggregationReference [
        label = "{ClasseAggregationReference}"
    ]

    ClasseCompositionReference [
        label = "{ClasseCompositionReference}"
    ]

    ClasseExtendReference [
        label = "{ClasseExtendReference}"
    ]

    ClasseImplementReference [
        label = "{ClasseImplementReference}"
    ]

    ObjectList [
        label = "{ObjectList}"
    ]

    Value [
        label = "{Value}"
    ]

    Constructeur [
        label = "{Constructeur}"
    ]

    Import [
        label = "{Import| #classpath  :  String}"
    ]

    Methode [
        label = "{Methode| #name : String\l#type : Classe\l#visibility : Visibility}"
    ]

    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "classes 0..*", taillabel = ""]
    Systeme -> Classe
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "notes 0..*", taillabel = ""]
    Systeme -> String
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "attributs 0..*", taillabel = ""]
    Classe -> Attribut
    edge [arrowhead = "vee", arrowtail = "none" style="solid", headlabel = "constructeur ", taillabel = ""]
    Classe -> Constructeur
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "imports 0..*", taillabel = ""]
    Classe -> Import
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "extends 0..*", taillabel = ""]
    Classe -> ClasseExtendReference
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "methods 0..*", taillabel = ""]
    Classe -> Methode
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "implements 0..*", taillabel = ""]
    Classe -> ClasseImplementReference
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> ClasseAggregationReference
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> ClasseCompositionReference
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> ClasseExtendReference
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> ClasseImplementReference
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> ObjectList
    edge [arrowhead = "none", arrowtail = "empty" style="solid", headlabel = "", taillabel = ""]
    Attribut -> Value
    edge [arrowhead = "vee", arrowtail = "diamond" style="solid", headlabel = "attributs 0..*", taillabel = ""]
    Methode -> Attribut
}