presboxes = {
return {
config: [
{
bgcolor: "lightblue",
typeLabel: "USPresident",
nodes: [
{ id: "b1n1", label: "Washington", isFocal: true },
{ id: "b1n2", label: "Adams", isFocal: true },
{ id: "b1n3", label: "Carter", isFocal: true },
{ id: "b1n4", label: "Bush", isFocal: true }
],
edges: [
{
source: "b1n1",
target: "t1",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b1n2",
target: "t1",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b1n3",
target: "t1",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b1n4",
target: "t1",
label: "type",
arrowhead: "vee",
isFocal: true
}
]
},
{
bgcolor: "lightgreen",
typeLabel: "Person",
nodes: [
{ id: "b2n1", label: "Washington", isFocal: false },
{ id: "b2n2", label: "Adams", isFocal: false },
{ id: "b2n3", label: "Carter", isFocal: false },
{ id: "b2n4", label: "Bush", isFocal: false },
{ id: "b2n5", label: "Amy", isFocal: true },
{ id: "b2n6", label: "John", isFocal: true }
],
edges: [
{
source: "b2n1",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b2n2",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b2n3",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b2n4",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b2n5",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b2n6",
target: "t2",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b2n3",
target: "b2n5",
label: "hasChild",
arrowhead: "vee",
isFocal: true
},
{
source: "b2n4",
target: "b2n6",
label: "hasChild",
arrowhead: "vee",
isFocal: true
}
]
},
{
bgcolor: "lightyellow",
typeLabel: "EducationalOrganization",
nodes: [
{ id: "b3n1", label: "Amy", isFocal: false },
{ id: "b3n2", label: "John", isFocal: false },
{ id: "b3n3", label: "Harvard", isFocal: true },
{ id: "b3n4", label: "Yale", isFocal: true }
],
edges: [
{
source: "b3n1",
target: "t3",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b3n2",
target: "t3",
label: "type",
arrowhead: "vee",
isFocal: false
},
{
source: "b3n3",
target: "t3",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b3n4",
target: "t3",
label: "type",
arrowhead: "vee",
isFocal: true
},
{
source: "b3n1",
target: "b3n3",
label: "attended",
arrowhead: "vee",
isFocal: true
},
{
source: "b3n2",
target: "b3n4",
label: "attended",
arrowhead: "vee",
isFocal: true
}
]
}
]
};
}