graph{
  start=42

  // Entities
  node [
    shape=box
    style=filled
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  1 [label="Produit"]
  8 [label="Commande"]

  // Associative entities
  5 [label="Ligne de\ncommande",shape=Mdiamond]

  // Normal entity attributes
  node [
    shape=oval
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  3 [label="libellé"]
  10 [label="date"]

  // Weak and strong entity attributes
  2 [label=<<u>produit</u>>]
  6 [label=<<u>quantité</u>> style="dashed,filled"]
  9 [label=<<u>commande</u>>]

  // Relationships
  node [
    shape=diamond
    height=0.7
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  4 [label="DF",peripheries=2]
  7 [label="DF",peripheries=2]

  // Edges between entities and attributes
  edge [
    penwidth=1.5
  ]
  1 -- 2
  1 -- 3
  5 -- 6
  8 -- 9
  8 -- 10

  // Edges between entities and relationships
  edge [
    penwidth=1
    color="#000000:#000000"
    labeldistance=2
    headlabel=1
  ]
  8 -- 7
  1 -- 4 [color="#000000"]
  edge [headlabel=N]
  5 -- 4
  5 -- 7
}