The GraphAdjList class can be used to represent adjacency list based graphs in BRIDGES with E represnting a data specific generic parameter. The class is simply a wrapper around the C++ STL unordered_map class and, thus, derives all its operations from it. BRIDGES provides methods to visualize the graph and its contents.
More...
The GraphAdjList class can be used to represent adjacency list based graphs in BRIDGES with E represnting a data specific generic parameter. The class is simply a wrapper around the C++ STL unordered_map class and, thus, derives all its operations from it. BRIDGES provides methods to visualize the graph and its contents.
- Author
- Kalpathi Subramanian
- Date
- 6/29/15
- Parameters
-
Adds a new edge to the graph, adds it to that vertex's adjacency list; user is responsible for checking if the vertex already exists.
- Parameters
-
src | - source vertex of edge |
dest | - destination vertex of edge |
weight | - edge weight |
- Returns
- none
Adds a new vertex to the graph, initializes the adjacency list; user is responsible for checking if the vertex already exists. This method will replace the value for this key
- Parameters
-
- Returns
- none
Gets the adjacency list (of type SLelement<Edge> )
- Returns
- - the graph's adjacency lists
Gets the adjacency list (of type SLelement<Edge> of a vertex)
- Parameters
-
- Returns
- - the graph's adjacency list corresponding to this vertex
This method gets the data structure type
- Returns
- The date structure type as a string
This method returns the graph nodes
- Returns
- – vertices held in an unordered map
The documentation for this class was generated from the following file: