}
AttributeColumn edgeCol = am.getEdgeTable().getColumn("filter_" + title);
if (edgeCol == null) {
edgeCol = am.getEdgeTable().addColumn("filter_" + title, title, AttributeType.BOOLEAN, AttributeOrigin.COMPUTED, Boolean.FALSE);
}
result.readLock();
for (Node n : result.getNodes()) {
n.getNodeData().getAttributes().setValue(nodeCol.getIndex(), Boolean.TRUE);
}
for (Edge e : result.getEdgesAndMetaEdges()) {
e.getEdgeData().getAttributes().setValue(edgeCol.getIndex(), Boolean.TRUE);