Returns a boolean value indicating whether the edge is directed or undirected.
Return type
BOOL
Parameters
None.
setAttr()
Syntax
e.setAttr( attrName, attrNewValue )
Description
Sets an attribute of an edge to a new value.
Return type
No return value.
Parameters
Parameter
Description
Data type
attrName
The name of the attribute. This argument must be a query parameter.
STRING
attrNewValue
The new value of the attribute
The type of the attribute.
Example
CREATE QUERY setAttrExample(STRING attr){
Current = {v_type.*}
S = SELECT s
FROM Current:s -(e_type:e) -> v_type:t
WHERE t.attribute1 == "example_value"
ACCUM e.setAttr(attr, TRUE); (1)
}
1
Selected edges will have their specified attribute set to TRUE.