let options = {
useHead: true,
useGroups: true,
groupNodeBy: "group"
};
var nodes = [
{id: 1, label: 'Node 1', group: "group", shape: 'box'},
{id: 2, label: 'Node 2\nNode 1\nNode 1', group: "group"},
{id: 6, label: 'Node 6', group: 2},
{id: 7, label: 'Node 7', group: 3, shape: 'box'},
{id: 5, label: 'Node 5', group: 3, shape: 'box'},
{id: 4, label: 'Node 4', group: 1, shape: 'box'},
{id: 3, label: 'Node 3', group: 1, shape: 'box'},
{id: 8, label: 'Node 8', group: 3, shape: 'box'},
{id: 9, label: 'Node 9', group: 3, shape: 'box'},
{id: 10, label: 'Node 10', group: 3, shape: 'box'},
{id: 11, label: 'Node 1Node 1', group: 4, shape: 'box'},
{id: 12, label: 'Node 1Node 1Node 1', group: 5, shape: 'box'},
{id: 13, label: 'Node 1\nNode 1\nNode 1\nNode 1', group: 6, shape: 'box'},
{id: 14, label: 'Node 1', group: 7, shape: 'box'},
{id: 15, label: 'Node 22', group: 8, shape: 'box'},
];
var edges = [
{from: 1, to: 2, arrows: "from"},
{from: 2, to: 6},
{from: 2, to: 6},
{from: 2, to: 6},
{from: 1, to: 6},
{from: 8, to: 7},
{from: 3, to: 4, },
{from: 4, to: 3},
{from: 4, to: 3},
{from: 3, to: 4, arrows: "from"},
{from: 5, to: 8},
{from: 5, to: 9},
{from: 8, to: 5, arrows: "from"},
{from: 7, to: 10},
];