Edge Methods
This page lists all built-in edge methods that can be accessed by edge aliases using the dot (.
) operator.
getAttr()
getAttr()
Syntax
e.getAttr( attrName, atterType )
Description
Returns the value of an attribute of the edge.
Return type
The data type of the attribute itself.
Parameters
Parameter | Description | Data type |
| The name of the attribute. |
|
| The type of the attribute |
|
Example
If we have the following edge:
Assume the alias of the edge is e
:
isDirected()
isDirected()
Syntax
e.isDirected()
Description
Returns a boolean value indicating whether the edge is directed or undirected.
Return type
BOOL
Parameters
None.
setAttr()
setAttr()
Syntax
e.setAttr( attrName, attrType, attrNewValue)
Description
Sets an attribute of an edge to a new value.
Return type
No return value.
Parameters
Parameter | Description | Data type |
| The name of the attribute |
|
| The type of the attribute |
|
| The new value of the attribute |
|
Last updated