Attribute attFrog = attrListStatic.createAttribute("1", AttributeType.BOOLEAN, "frog")
.setDefaultValue("true");
Attribute attIndegree = attrListDynamic.createAttribute("2", AttributeType.FLOAT, "indegree");
Node gephi = gexf.getGraph().createNode("0");
gephi
.setLabel("Gephi")
.setStartDate(toDate("2009-03-01"))
.getAttributeValues()
.addValue(attUrl, "http://gephi.org")
.addValue(attIndegree, "1");
Node webatlas = gexf.getGraph().createNode("1");
webatlas
.setLabel("Webatlas")
.getAttributeValues()
.addValue(attUrl, "http://webatlas.fr");
webatlas.getAttributeValues().createValue(attIndegree, "1")
.setEndDate(toDate("2009-03-01"));
webatlas.getAttributeValues().createValue(attIndegree, "2")
.setStartDate(toDate("2009-03-01"))
.setEndDate(toDate("2009-03-10"));
webatlas.getAttributeValues().createValue(attIndegree, "1")
.setStartDate(toDate("2009-03-10"));
Node rtgi = gexf.getGraph().createNode("2");
rtgi
.setLabel("RTGI")
.getAttributeValues()
.addValue(attUrl, "http://rtgi.fr");
rtgi.getAttributeValues().createValue(attIndegree, "0")
.setEndDate(toDate("2009-03-01"));
rtgi.getAttributeValues().createValue(attIndegree, "1")
.setStartDate(toDate("2009-03-01"));
rtgi.getSlices().add(new SliceImpl()
.setEndDate(toDate("2009-03-01")));
rtgi.getSlices().add(new SliceImpl()
.setStartDate(toDate("2009-03-05"))
.setEndDate(toDate("2009-03-10")));
Node blab = gexf.getGraph().createNode("3");
blab
.setLabel("BarabasiLab")
.getAttributeValues()
.addValue(attUrl, "http://barabasilab.com")
.addValue(attFrog, "false");
blab.getAttributeValues().createValue(attIndegree, "0")
.setEndDate(toDate("2009-03-01"));
blab.getAttributeValues().createValue(attIndegree, "1")
.setStartDate(toDate("2009-03-01"));
gephi.connectTo("0", webatlas)
.setStartDate(toDate("2009-03-01"));