 <p id="simpleError" class="error"></p>
  <p>Enter JSON array of segments of some A/B-graph:</p>
  <textarea id="segments" rows="12" cols="150">
  [
    { "id": "seg1", "firstPoint": "p1", "firstSide": "A", "secondPoint": "p2", "secondSide": "A", "weight": 8},
    { "id": "seg2", "firstPoint": "p1", "firstSide": "B", "secondPoint": "p3", "secondSide": "A", "weight": 2},
    { "id": "seg3", "firstPoint": "p1", "firstSide": "B", "secondPoint": "p2", "secondSide": "A", "weight": 3},
    { "id": "seg11", "first