@Override public boolean init(Graph graph) { if (AttributeUtils.isNodeColumn(column)) { if (graph.getNodeCount() == 0) { return false; } } else if (AttributeUtils.isEdgeColumn(column)) { if (graph.getEdgeCount() == 0) { return false; } } return true; }
@Override public boolean init(Graph graph) { if (AttributeUtils.isNodeColumn(column)) { if (graph.getNodeCount() == 0) { return false; } } else if (AttributeUtils.isEdgeColumn(column)) { if (graph.getEdgeCount() == 0) { return false; } } return true; }
@Override public boolean init(Graph graph) { if (AttributeUtils.isNodeColumn(column)) { if (graph.getNodeCount() == 0) { return false; } } else if (AttributeUtils.isEdgeColumn(column)) { if (graph.getEdgeCount() == 0) { return false; } } return true; }
@Override public boolean canManipulateColumn(Table at, Column c) { if (AttributeUtils.isNodeColumn(c)) { if (!c.isProperty()) { //Can't replace id or label column return AttributeUtils.getIntervalMapType(c.getTypeClass()) != null;//Is convertible to some dynamic type? } else { return false; } } else if (AttributeUtils.isEdgeColumn(c)) { if (!c.isProperty()) { //Can't replace id, label or weight column return AttributeUtils.getIntervalMapType(c.getTypeClass()) != null;//Is convertible to some dynamic type? } else { return false; } } else { return false; } }