graph{
  start=42

  // Entities
  node [
    shape=box
    style=filled
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  1 [label="PIÈCE"]
  4 [label="HOMME"]

  // Normal entity attributes
  node [
    shape=oval
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  6 [label="Nom"]
  7 [label="Prénom"]

  // Weak and strong entity attributes
  2 [label=<<u>pièce</u>>]
  5 [label=<<u>Num. SS</u>>]

  // Relationships
  node [
    shape=diamond
    height=0.7
    penwidth=1.5
    fillcolor="#FFFFFF"
  ]
  3 [label="COMPOSER"]
  8 [label="ENGENDRER"]

  // Edges between entities and attributes
  edge [
    penwidth=1.5
  ]
  1 -- 2
  4 -- 5
  4 -- 6
  4 -- 7

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