Package com.ojn.gexf4j.core.data

Examples of com.ojn.gexf4j.core.data.AttributeList


   
    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"))
View Full Code Here


    gexf.getMetadata()
      .setLastModified(toDate("2009-03-20"))
      .setCreator("Gephi.org")
      .setDescription("A Web network");
   
    AttributeList attrList = new AttributeListImpl(AttributeClass.NODE);
    gexf.getGraph().getAttributeLists().add(attrList);
   
    Attribute attUrl = attrList.createAttribute("0", AttributeType.STRING, "url");
    Attribute attIndegree = attrList.createAttribute("1", AttributeType.FLOAT, "indegree");
    Attribute attFrog = attrList.createAttribute("2", AttributeType.BOOLEAN, "frog")
      .setDefaultValue("true");
   
    Node gephi = gexf.getGraph().createNode("0");
    gephi
      .setLabel("Gephi")
View Full Code Here

TOP

Related Classes of com.ojn.gexf4j.core.data.AttributeList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.