Public Member Functions | |
DataType | GetDataOfNode (int nodeId) |
ICollection< int > | GetEdgesFromNode (int nodeID) |
ICollection< int > | GetEdgesToNode (int nodeID) |
object | MakeReadOnly () |
void | SetRoot (TreeNode< DataType > newRoot) |
Tree () | |
Properties | |
ICollection< int[]> | Arcs [get] |
bool | IsReadonly [get] |
ICollection< int > | NodeIDs [get] |
TreeNode< DataType > | Root [get] |
wx.Graph.Tree< DataType >.Tree | ( | ) |
DataType wx.Graph.Tree< DataType >.GetDataOfNode | ( | int | id | ) |
This will return the data that is associated with the graph node of the provided ID.
id | designates the graph node whose data will be returned. |
Implements wx.Graph.IGraph< DataType >.
ICollection<int> wx.Graph.Tree< DataType >.GetEdgesFromNode | ( | int | nodeID | ) |
Returns a collection of that nodes A (designated by their IDs) where there is an arc from A to the node designated by nodeID
.
nodeID | The node that is the target of the selected edges |
Implements wx.Graph.IGraph< DataType >.
ICollection<int> wx.Graph.Tree< DataType >.GetEdgesToNode | ( | int | nodeID | ) |
Returns a collection of that nodes A (designated by their IDs) where there is an edge from the node designated by nodeID
to A.
nodeID | The node that is the target of the selected edges |
Implements wx.Graph.IGraph< DataType >.
object wx.Graph.Tree< DataType >.MakeReadOnly | ( | ) |
From this call, all calls to modifiers will cause exceptions. This shall return this
.
Implements wx.ICanBeMadeReadonly.
void wx.Graph.Tree< DataType >.SetRoot | ( | TreeNode< DataType > | newRoot | ) |
Sets the argument as a new root node.
newRoot | The node that shall be the root node. |
CannotChangeReadonly | Will be thrown if this is read-only. | |
ApplicationException | If the argument is already part of a tree. |
ICollection<int[]> wx.Graph.Tree< DataType >.Arcs [get] |
A collection of tuples of integers that represent the arcs between the nodes. The integers are node IDs.
Implements wx.Graph.IGraph< DataType >.
bool wx.Graph.Tree< DataType >.IsReadonly [get] |
If this is true, all modifiers will cause exceptions. If this is false, modfiers can be used.
Implements wx.ICanBeMadeReadonly.
ICollection<int> wx.Graph.Tree< DataType >.NodeIDs [get] |
Collection of node IDs.
Implements wx.Graph.IGraph< DataType >.
TreeNode<DataType> wx.Graph.Tree< DataType >.Root [get] |
This is the root node of the tree. This is null
if the tree is empty.