Forest

Tasks

# this graph is a forest set hasParents to be true add node A with two children B and C and node D with two children E and F and node G with children H, I, J add node K add node L with child M

JSON Representation

{
"directed": false,
"hasParents": true,
"nodes": {
  "A": {},
  "B": {},
  "C": {},
  "D": {},
  "E": {},
  "F": {},
  "G": {},
  "H": {},
  "I": {},
  "J": {},
  "K": {},
  "L": {},
  "M": {}
},
"edges": {
  "AB": {
    "source": "A",
    "target": "B"
  },
  "AC": {
    "source": "A",
    "target": "C"
  },
  "DE": {
    "source": "D",
    "target": "E"
  },
  "DF": {
    "source": "D",
    "target": "F"
  },
  "GH": {
    "source": "G",
    "target": "H"
  },
  "GI": {
    "source": "G",
    "target": "I"
  },
  "GJ": {
    "source": "G",
    "target": "J"
  },
  "LM": {
    "source": "L",
    "target": "M"
  }
},
"constraints": [],
"_positions": {
  "A": [
    -8.422487955674459,
    3.522057935840937
  ],
  "B": [
    -7.99417246879918,
    -2.39127877183419
  ],
  "C": [
    -3.986875094406636,
    -8.256563655575984
  ],
  "D": [
    -3.404457371092532,
    4.051867194284873
  ],
  "E": [
    -2.5786963479318916,
    -3.941044953200864
  ],
  "F": [
    -2.3147058142393053,
    8.39410608884846
  ],
  "G": [
    -1.1981270738136405,
    0.538190442222831
  ],
  "H": [
    3.0417581107739764,
    8.218177113148663
  ],
  "I": [
    3.0853367191676955,
    4.112879850867
  ],
  "J": [
    3.3194758684293397,
    -1.3368770455212098
  ],
  "K": [
    4.264346880502618,
    -6.745947776268013
  ],
  "L": [
    8.115000695649217,
    1.132138432815005
  ],
  "M": [
    8.115000695649217,
    -4.177409367473682
  ]
}
}