Graphlb::DataStructures::Node
Inherits Reference / Object
The node Class basically represnts the vertices in a graph it contains two properties
- name of the vertex
- edge shared with other vertex
edges property in Node reprensents the adjacency graph which is implemented using a hash with vertex name as it key and edge weight as its value
Constructors
Instance methods
!=(other : Node)
Source==(other : Node)
Sourceadd_edge(node, weight)
Adds a new edge to the vertex node with information about edge weight and adjacent vertex
edges
Sourcename
Source