return "dynamic";
}
@Override
public Gexf buildGexf() {
Gexf gexf = new GexfImpl();
gexf.getMetadata()
.setLastModified(toDate("2009-03-20"))
.setCreator("Gexf.net")
.setDescription("A Web network changing over time");
gexf.getGraph()
.setStartDate(toDate("2009-01-01"))
.setEndDate(toDate("2009-03-20"));
AttributeList attrListStatic = new AttributeListImpl(AttributeClass.NODE);
gexf.getGraph().getAttributeLists().add(attrListStatic);
AttributeList attrListDynamic = new AttributeListImpl(AttributeClass.NODE)
.setMode(Mode.DYNAMIC);
gexf.getGraph().getAttributeLists().add(attrListDynamic);
Attribute attUrl = attrListStatic.createAttribute("0", AttributeType.STRING, "url");
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");