new GraphEdge()
A class to represent a abstract graph edge.
Properties:
Name | Type | Description |
---|---|---|
data |
Hash | Extra data assocaited with this edge (e.g., weight). |
vertexes |
Array | Connected vertexes on this edge. |
- Source:
Extends
Methods
-
getData(keyName) → {Variant}
-
Returns stored data value. If key name not set, a hash of al data will be returned.
Parameters:
Name Type Description keyName
String - Inherited From:
- Source:
Returns:
- Type
- Variant
-
removeData(keyName)
-
Remove a stored data item.
Parameters:
Name Type Description keyName
String - Inherited From:
- Source:
-
replaceVertex(oldVertex, newVertex)
-
Replace a linked vertex
Parameters:
Name Type Description oldVertex
Kekule.GraphVertex newVertex
Kekule.GraphVertex - Source:
-
setData(keyName, value)
-
Store a key-value pair in data.
Parameters:
Name Type Description keyName
String value
Variant - Inherited From:
- Source: