#include <graph.h>


Public Member Functions | |
| Graph () | |
| virtual | ~Graph ()=default |
| Graph (std::vector< Edge > edges, std::unordered_map< Index, GraphNode > nodes) | |
| bool | operator!= (const Graph &graph) const |
| bool | operator== (const Graph &graph) const |
| std::vector< std::pair< Index, GraphNode > > | getIsolatedNodes (void) const |
| std::vector< std::pair< Index, GraphNode > > | getNeighNodes (Index vertex) const |
| void | setNode (Index vertex, GraphNode &graph_node) |
| set the Node associated with vertex 'vert' | |
| void | setNode (std::pair< Index, GraphNode > &id_and_node) |
| std::vector< Index > | getJunctions () const |
| Gets all vertices with degree of 3 or greater. | |
| GraphNode | getNode (const Index vertex) const |
| Return a copy of the graph node at vertex 'vert'. | |
| virtual std::vector< std::pair< Index, GraphNode > > | getNodes () const |
| Return all the vertices and their graph nodes that are within the graph. | |
| std::vector< Index > | getNeighVertices (Index vertex) const |
| std::string | getId () const |
| Returns the id of graph. | |
| virtual std::vector< Edge > | getEdges () |
| Returns all the edges in the graph. | |
| std::vector< Edge > | getNeighEdges (Index vertex) const |
Returns all the edges in the graph connected to vertex vertex | |
| std::vector< Index > | getVertices () const |
| Returns all the vertices in the graph. | |
| Index | getMaxDegree () const |
| Finds the max degree of a vertex in the graph. | |
| Index | getDegree (Index vertex) const |
Calcualtes the degree, or number of edges connected to vertex vertex | |
| virtual std::vector< Index > | getVerticesDegree (Index degree) const |
Returns all the vertices with degree specified by degree | |
| bool | vertexExist (Index vertex) const |
| Determines if a vertex exists within the graph. | |
| virtual bool | edgeExist (const Edge &edge) const |
| Determines if an edge is stored in the graph. | |
| void | clearNodes () |
| Remove contents of all nodes. | |
| void | copyNodes (Graph &graph) |
Protected Member Functions | |
| void | calcId_ () |
| Calculate the id of the graph. | |
Protected Attributes | |
| EdgeContainer | edge_container_ |
| std::unordered_map< Index, GraphNode > | nodes_ |
| std::string | id_ |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Graph graph) |
|
virtualdefault |
|
protected |
| void votca::tools::Graph::clearNodes | ( | ) |
| void votca::tools::Graph::copyNodes | ( | Graph & | graph | ) |
|
inlinevirtual |
|
inlinevirtual |
|
inline |
| vector< Index > votca::tools::Graph::getJunctions | ( | ) | const |
|
inline |
Return all the vertices and their graph nodes that are within the graph.
Reimplemented in votca::tools::ReducedGraph.
| vector< Index > votca::tools::Graph::getVertices | ( | ) | const |
Returns all the vertices with degree specified by degree
Reimplemented in votca::tools::ReducedGraph.
| bool votca::tools::Graph::operator!= | ( | const Graph & | graph | ) | const |
| bool votca::tools::Graph::operator== | ( | const Graph & | graph | ) | const |
| bool votca::tools::Graph::vertexExist | ( | Index | vertex | ) | const |
|
friend |
|
protected |
|
protected |