All numerical attributes (float, double, integer, ...) are automatically available through ranking, you don't have to do anything. Once added as a column, Ranking can use it.My last question is this, say I created my own attribute, like what's happening here, only with doubles. Would it appear on the "Choose a rank parameter" dropdown menu? Or are the list of available rankings set in stone during import?
Statistics:Posted by mbastian — 08 Nov 2010 16:20
CODE:
AttributeModel attModel = Lookup.getDefault().lookup(AttributeController.class).getModel();attModel.getNodeTable().addColumn("diseased", AttributeType.BOOLEAN);
Statistics:Posted by Mountaineer — 07 Nov 2010 16:26
CODE:
nodedata.getAttributes.setValue("diseased", true )
CODE:
AttributeModel attModel = Lookup.getDefault().lookup(AttributeController.class).getModel();attModel.getNodeTable().addColumn("diseased", AttributeType.BOOLEAN);
Statistics:Posted by mbastian — 07 Nov 2010 10:46
CODE:
public void simulate() // called when selected from the right click menu { this.graph = graphController.getModel().getHierarchicalGraphVisible(); ModelImpl[] selectedNodeModels = engine.getSelectedObjects(AbstractEngine.CLASS_NODE); for (ModelImpl metaModelImpl : selectedNodeModels) { NodeData nodeData = (NodeData) metaModelImpl.getObj(); nodeData.setColor(0, 1, 0); nodeData.setDiseased(true); // Causes Gephi to crash } }
Statistics:Posted by Mountaineer — 07 Nov 2010 05:21