#include <edgeVector.h>
Inheritance diagram for EdgeVector< EdgeType, blockSize, noOfPages, pageSize >:
Public Methods | |
EdgeVector (NodeCount noOfNodes, EdgeCount noOfEdges) | |
Constructs an EdgeVector. | |
EdgeCount | noOfEdges () const |
Returns the number of edges of the graph. | |
NodeCount | noOfNodes () const |
Returns the number of nodes of the graph. | |
bool | empty () const |
Returns true iff this list is empty, i.e. | |
void | sortByWeight () |
Sorts the edges of the graph by weight. | |
Private Attributes | |
NodeCount | _noOfNodes |
Friends | |
std::ostream & | operator<< (std::ostream &os, EdgeVector< EdgeType, blockSize, noOfPages, pageSize > &el) |
Writes a string representation of the edge list to an output stream. |
Definition at line 32 of file edgeVector.h.
|
Constructs an EdgeVector. The number of nodes is stored and space for the edges is reserved, but the edges aren't created. In order to add the edges of the graph, use methods like "push_back".
Definition at line 53 of file edgeVector.h. |
|
Returns true iff this list is empty, i.e. it contains no edges. Definition at line 64 of file edgeVector.h. |