class

Graphlb::DataStructures::UnDirectedGraph

Inherits Reference / Object

The UnDirectedGraph class represents a graph with all the vertices and undirectededges

Constructors

new

creats a graph

Source

Instance methods

add_edge(from_node : Node, to_node : Node, weight)

Add edges to the graph from the from_node to to_node with a given edge_weight

Source
add_vertex(name)

Add nodes to the graph with the given name

Source
get_vertices

returns informaton about all the vertices inside the graph

Source
remove_edge(from_node : Node, to_node : Node)

Removes the edge form the from_node to the to_node present in the graph

Source
vertices
Source