Settings:

nodeSettings = {
    emperor: {number: 1, color: "red", size: 15},
    hierarchical2: {number: 0, color: "orange", size: 10},
    hierarchical3: {number: 0, color: "yellow", size: 8},
    hierarchical4: {number: 0, color: "green", size: 6},
    hierarchical5: {number: 0, color: "blue", size: 4},
    hierarchical6: {number: 0, color: "darkblue", size: 2},
    outsiderA: {number: 0, color: "lightgray", size: 8},
    outsiderB: {number: 2, color: "gray", size: 4}
  }
  
var verticalEdgeSettings = 
    [
    {source: "hierarchical2", target: "emperor", number: 6, numbermin: 4},
    {source: "hierarchical3", target: "hierarchical2", number: 3, numbermin: 2},
    {source: "hierarchical4", target: "hierarchical3", number: 3, numbermin: 1},
    {source: "hierarchical5", target: "hierarchical4", number: 3, numbermin: 1},
    {source: "hierarchical6", target: "hierarchical5", number: 5, numbermin: 0},
    {source: "outsiderA", target: "emperor", number: 2, numbermin: 2}
    ]
    
horizontalEdgeSettings = 
    [
    {source: "hierarchical2", target: "hierarchical2", probability: .01},
    {source: "hierarchical3", target: "hierarchical3", probability: .05},
    {source: "hierarchical4", target: "hierarchical4", probability: .025},
    {source: "hierarchical5", target: "hierarchical5", probability: .01},
    {source: "outsiderA", target: "hierarchical1", probability: .1},
    {source: "outsiderA", target: "hierarchical2", probability: .25},
    {source: "outsiderB", target: "hierarchical2", probability: .1},
    {source: "outsiderB", target: "hierarchical3", probability: .2}
    ]